	var redirect = "http://m.gotomeeting.com/fec/";
	var sendRedirect = true;
	if ( redirect == undefined )
		sendRedirect = false;
	else sendRedirect=true;
	var device = false;
	var ua = navigator.userAgent.toLowerCase();
	if (ua.indexOf("iphone") > 0 || ua.indexOf("ipod") > 0 || ua.indexOf("googlebot-mobile") > 0) {
		device = true;
	} else if (ua.indexOf("android") > 0) {
		if (ua.indexOf("mobile safari") > 0) {
			device = true;
		} else if (screen.width <= 960 || screen.height <= 960){
			device = true;
		}
	}
	if( ua.indexOf("android") >= 0 && ua.indexOf("mobile safari") < 0 )
		device = false;
	var domain = document.domain.split(".");
	var domainStr;
	if (domain.length == 3)
		domainStr = domain.slice(-2).join(".");
	else domainStr = domain.join(".");
	var referrer = document.referrer;
	if(referrer.indexOf('?') > 0)
		referrer = referrer.substring(0,referrer.indexOf('?'))
	var sameDomain = false;
	var locale = "";
	if( referrer ) {
		if( referrer.indexOf(domainStr) != -1 )
			sameDomain = true;
	}
	if( device && !sameDomain && sendRedirect)
		location.replace( redirect );
function dntObj() {
	var aDomMch = ['.co.uk'];
	var aLocMch = ['en-gb'];
	var bInit = false;
	var bCtx = false;
	var sDom = window.location.hostname;
	var sDomRoot = '';
	var sLang = 'en';
	var sLoc = '';
	var sMsgCls = 'dnt';
	var sMsgID = 'dntmsg';
	var sMsgIDI = sMsgID+'-img';
	var sMsgIDC = sMsgID+'-cd';
	var sMsgIDCM = sMsgID+'-cdm';
	var sMsgLocId = '';
	var sMsgImgSrcDef = '//www.citrixonlinecdn.com/images/im/fe/dnt/gear-icon.png';
	var sMsgImgSrc = '';
	var sPP = 'http://www.citrixonline.com/collaboration/privacy_overview_popup';
	var oLangF = { 'c':['<a href="#" onclick="return dnt.toggleCLB(false);">','</a>'], 'cs':['<a href="#" onclick="return dnt.printInitMsg();">','</a>'], 'ia':['<a href="#" onclick="return dnt.changeDNT(2);">','</a>'], 'nt':['<a href="#" onclick="return dnt.changeDNT(3);">','</a>'], 'pp':['<a href="','" onclick="return dnt.showPP(this);">','</a>'] }
	var oLang = {
		'en':{'comp':'We use '+oLangF.c[0]+'cookies'+oLangF.c[1]+' to make your experience on our website better. Change your '+oLangF.cs[0]+'cookie settings'+oLangF.cs[1]+'.'
			,'init':'We use '+oLangF.c[0]+'cookies'+oLangF.c[1]+' to make your experience on our website better. To comply with the EC Directive, we ask for your consent to set these cookies. [ '+oLangF.ia[0]+'I agree'+oLangF.ia[1]+' ] [ '+oLangF.nt[0]+'No thanks'+oLangF.nt[1]+' ]'
			,'cky':'A cookie is a small text file that contains data about a website visit. Many websites create cookies and store them on their visitors\' computers to help them enhance their user experience. We use analytical cookies to count the number of visitors we have and to collect anonymous information about how people behave during their visits, such as which pages they view and in what order. This helps us know if our visitors are able to find what they need easily and gives us clues on how to improve how our websites work. To comply with the EC Directive, we also set a cookie to tell us if you have agreed to our use of cookies. For further information about our cookies and privacy practices, please read our '+oLangF.pp[0]+sPP+oLangF.pp[1]+'Privacy Policy'+oLangF.pp[2]+'.'
		}
	}
	var sSty = '.dnt { clear:left; color:#666; display:block; font-size:11px; margin:10px 25px; overflow:auto; padding:4px 2px; text-align:left;  line-height:normal; } .dnt #'+sMsgIDI+', .dnt #'+sMsgIDC+' { display:inline; margin:0; padding:0; vertical-align:top; } .dnt #'+sMsgIDC+' { margin:0 8px; } .dnt #'+sMsgIDCM+' { padding-top:10px; }';
	var getSrc = function() {
		var oSrc = document.getElementsByTagName("script");
		for(var i=0; i<oSrc.length;i++) if(/dnt2\.js$/.test(oSrc[i].src)) sMsgImgSrcDef = '//'+oSrc[i].src.split('//')[1].split('dnt2.js')[0]+'gear-icon.png';
	}
	var domCheck = function() {
		for(var i = 0; i < aDomMch.length; i++) if(sDom.indexOf(aDomMch[i],sDom.length-aDomMch[i].length) !== -1) bCtx = true;
	}
	var locCheck = function() {
		if(sLoc != '') for(var i = 0; i < aLocMch.length; i++) if(sLoc == aLocMch[i]) bCtx = true;
	}
	var getRootDOM = function() {
		var sD = sDom;
		var aD = sD.split('.');
		var iDC = aD.length-1;
		var aT = [];
		for(var i=iDC; i>0; i--){
			aT.unshift(aD[i]);
			if(aD[i].length >= 4){ sD = aT.join('.'); break; }
		}
		sDomRoot = sD;
	}
	var getDNT = function() {
		var rtn = undefined;
		var cky = document.cookie.split(";");
		for(var i = 0; i < cky.length; i++) if(cky[i].indexOf('dnt') != -1) rtn = cky[i].split('=')[1];
		return rtn;
	}
	var setDNT = function(i) {
		var exp = new Date((new Date()).getTime() + 365 * 24 * 60 * 60 * 1000);
		document.cookie = 'dnt='+i+';expires='+exp.toGMTString()+';path=/;domain='+sDomRoot;
	}
	var delDNT = function() {
		var exp = new Date((new Date()).getTime() - 1000);
		document.cookie = 'dnt=;expires='+exp.toGMTString()+';path=/;domain='+sDomRoot;
	}
	this.setMsgClass = function(s) {
		sMsgCls = s;
	}
	this.setMsgImgSrc = function(s) {
		sMsgImgSrc = s;
	}
	this.setMsgLocId = function(s) {
		sMsgLocId = s;
	}
	this.setLocale = function(s) {
		sLoc = s.toLowerCase().replace("_","-");
		var aLoc = sLoc.split('-');
		if(aLoc[0].match(/^[a-z]{2}$/) && aLoc[0] in oLang) sLang = aLoc[0];
	}
	this.printInitMsg = function() {
		document.getElementById(sMsgIDC).innerHTML = oLang[sLang]['init'];
		return false;
	}
	this.dntTrue = function() {
		var rtn = false;
		if(bCtx) {
			var oC = getDNT();
			if(typeof oC == 'undefined' || oC == '0' || oC == '3') rtn = true;
		}
		return rtn;
	}
	var writeCompMsg = function() {
		document.getElementById(sMsgIDC).innerHTML = oLang[sLang]['comp'];
		return false;
	}
	var printFoot = function() {
		var oC = getDNT();
		var oAp = undefined;
		if(sMsgLocId != '' && document.getElementById(sMsgLocId) != null) oAp = document.getElementById(sMsgLocId);
		if(/(?:^| )(dnt)(?: |$)/.test(sMsgCls)) {
			var h = document.getElementsByTagName('head')[0];
			var s = document.createElement("style");
			s.type = 'text/css';
			if(s.styleSheet) s.styleSheet.cssText = sSty;
			else s.appendChild(document.createTextNode(sSty));
			h.appendChild(s);
		}
		var i = document.createElement("img");
		i.id = sMsgIDI, i.width = '14', i.height = '14', i.border = '0', i.src = (sMsgImgSrc != '') ? sMsgImgSrc : sMsgImgSrcDef;
		var divP = document.createElement("div");
		divP.id = sMsgID;
		divP.className = sMsgCls;
		divP.appendChild(i);
		if(typeof oAp == 'undefined') document.body.appendChild(divP);
		else oAp.insertBefore(divP, (oAp.hasChildNodes()) ? oAp.children[0] : null);
		var divC = document.createElement("div");
		divC.id = sMsgIDC;
		divP.appendChild(divC);
		if(oC == '0' || oC == '1') divC.innerHTML += oLang[sLang]['init'];
		else divC.innerHTML += oLang[sLang]['comp'];
	}
	this.toggleCLB = function(b) {
		var divCM = document.getElementById(sMsgIDCM);
		var oCD = document.getElementById(sMsgID);
		if(divCM == null && b != true) {
			divCM = document.createElement("div");
			divCM.id = sMsgIDCM;
			divCM.innerHTML += oLang[sLang]['cky']
			oCD.appendChild(divCM);
		} else if(divCM != null) oCD.removeChild(divCM);
		return false;
	}
	this.showPP = function(o) {
		window.open(o.href,'popup','height=400,width=600,menubar=0,status=0,location=0,toolbar=0,scrollbars=yes,resizable=yes');
		return false;
	}
	this.changeDNT = function(i) {
		setDNT(i);
		writeCompMsg();
		this.toggleCLB(true);
		return false;
	}
	this.dntInit = function() {
		bInit = true;
		getSrc();
		getRootDOM();
		domCheck();
		locCheck();
		var oC = getDNT();
		if(bCtx) {
			if(typeof oC == 'undefined') setDNT(0);
			else if(oC == '0') setDNT(1);
			else setDNT(oC);
		} else {
			if(typeof oC != 'undefined') delDNT();
		}
	}
	this.dntLoad = function() {
		if(bInit == false) this.dntInit();
		if(bCtx) printFoot();
	}
}
(function() {
    function dntOL() {
		dnt.dntLoad();
    }
    if (window.attachEvent) window.attachEvent('onload', dntOL);
    else window.addEventListener('load', dntOL, false);
})();
var dnt = new dntObj();
        dnt.setMsgClass('footer-dnt');
        dnt.setMsgLocId('footer-dnt');
        dnt.setLocale('en_US');
        dnt.dntInit();
if(brightcove==undefined){var brightcove={};brightcove.getExperience=function(){alert("Please import APIModules_all.js in order to use the API.");};}
if(brightcove.experiences==undefined){brightcove.servicesURL='http://c.brightcove.com/services';brightcove.cdnURL='http://admin.brightcove.com';brightcove.secureCDNURL='https://sadmin.brightcove.com';brightcove.secureServicesURL='https://secure.brightcove.com/services';brightcove.pubHost='c.$pubcode$.$zoneprefix$$zone$';brightcove.pubSecureHost='secure.$pubcode$.$zoneprefix$$zone$';brightcove.pubSubdomain='ariessaucetown.local';brightcove.experiences={};brightcove.experienceObjects={};brightcove.timeouts={};brightcove.flashTimeoutInterval=10000;brightcove.htmlTimeoutInterval=10000;brightcove.experienceNum=0;brightcove.majorVersion=9;brightcove.majorRevision=0;brightcove.minorRevision=28;brightcove.servlet={AS3:"federated_f9",HTML:"htmlFederated"};brightcove.playerType={FLASH:"flash",HTML:"html",FLASH_IFRAME:"flashIFrame",INSTALLER:"installer",NO_SUPPORT:"nosupport"};brightcove.errorCodes={UNKNOWN:0,DOMAIN_RESTRICTED:1,GEO_RESTRICTED:2,INVALID_ID:3,NO_CONTENT:4,UNAVAILABLE_CONTENT:5,UPGRADE_REQUIRED_FOR_VIDEO:6,UPGRADE_REQUIRED_FOR_PLAYER:7,SERVICE_UNAVAILABLE:8};brightcove.defaultParam={};brightcove.defaultParam.width='100%';brightcove.defaultParam.height='100%';brightcove.defaultFlashParam={};brightcove.defaultFlashParam.allowScriptAccess='always';brightcove.defaultFlashParam.allowFullScreen='true';brightcove.defaultFlashParam.seamlessTabbing=false;brightcove.defaultFlashParam.swliveconnect=true;brightcove.defaultFlashParam.wmode='window';brightcove.defaultFlashParam.quality='high';brightcove.defaultFlashParam.bgcolor='#999999';brightcove.hasActiveX=brightcove.isIE=(window.ActiveXObject!=undefined);brightcove.userAgent=navigator.userAgent;brightcove._queuedAPICalls=[];var brightcoveJS=brightcove;brightcove.createExperiences=function(pEvent,pElementID){var experiences=[];var params;var experience;var flashSupport=brightcove.checkFlashSupport();var htmlSupport=brightcove.checkHtmlSupport();if(pElementID!=null){experiences.push(document.getElementById(pElementID));}else{experiences=brightcove.collectExperiences();}
if(brightcove.hasActiveX){params=document.getElementsByTagName('param');}
var urlParams=brightcove.cacheUrlParams();var numExperiences=experiences.length;for(var i=0;i<numExperiences;i++){experience=experiences[i];experience=brightcove.copyDefaultParams(experience);experience=brightcove.copySnippetParams(experience,params);experience=brightcove.copyUrlParams(experience,urlParams,numExperiences);var playerType=brightcove.determinePlayerType(experience,flashSupport,htmlSupport);var secureConnections=false;if(playerType==brightcove.playerType.HTML){secureConnections=experience.params.secureHTMLConnections=="true";}else{secureConnections=experience.params.secureConnections=="true";}
if(playerType==brightcove.playerType.NO_SUPPORT){brightcove.renderInstallGif(experience,secureConnections);brightcove.reportUpgradeRequired(experience);continue;}
if(playerType==brightcove.playerType.HTML){delete experience.params.linkBaseURL;}else{if(experience.params.includeAPI&&experience.params.templateReadyHandler!=null){experience.params.originalTemplateReadyHandler=experience.params.templateReadyHandler;var handlerName="templateReadyHandler"+experience.id;brightcove[handlerName]=(function(id){return function(event){if(brightcove.internal!=null&&brightcove.internal._instances[id]!=null){brightcove._addModuleToEvent(id,event);}
var player=brightcove.experienceObjects[id];brightcove.callHandlerForPlayer(player,"originalTemplateReadyHandler",event);};})(experience.id);experience.params.templateReadyHandler='brightcove["'+handlerName+'"]';}}
var file=brightcove.generateRequestUrl(experience,playerType,secureConnections);if(document.location.protocol=="http:"){var event='http://goku.brightcove.com/1pix.gif?';var gokuParams=["dcsuri=/viewer/player_load_req","playerType="+playerType,"playerURL="+encodeURIComponent(document.location||"")];var image=brightcove.createElement('image');for(var j in experience.params){gokuParams.push([encodeURIComponent(j)+"="+encodeURIComponent(experience.params[j])]);}
event+=gokuParams.join('&');image.src=event;}
brightcove.renderExperience(experience,file,playerType,secureConnections);}};brightcove.collectExperiences=function(){var experiences=[];var allObjects=document.getElementsByTagName('object');var numObjects=allObjects.length;for(var i=0;i<numObjects;i++){if(/\bBrightcoveExperience\b/.test(allObjects[i].className)){if(allObjects[i].type!='application/x-shockwave-flash'){experiences.push(allObjects[i]);}}}
return experiences;};brightcove.cacheUrlParams=function(){var urlParams={};urlParams.playerKey=decodeURIComponent(brightcove.getParameter("bckey"));urlParams.playerID=brightcove.getParameter("bcpid");urlParams.titleID=brightcove.getParameter("bctid");urlParams.lineupID=brightcove.getParameter("bclid");urlParams.autoStart=brightcove.getParameter("autoStart");urlParams.debuggerID=brightcove.getParameter("debuggerID");urlParams.forceHTML=brightcove.getParameter("forceHTML");urlParams.forceFlashIFrame=brightcove.getParameter("forceFlashIFrame");urlParams.debug=brightcove.getParameter("debug");urlParams.showNoContentMessage=brightcove.getParameter("showNoContentMessage");return urlParams;};brightcove.copyDefaultParams=function(experience){if(!experience.params)experience.params={};if(!experience.flashParams)experience.flashParams={};for(var i in brightcove.defaultParam){experience.params[i]=brightcove.defaultParam[i];}
for(var j in brightcove.defaultFlashParam){experience.flashParams[j]=brightcove.defaultFlashParam[j];}
if(experience.id.length>0){experience.params.flashID=experience.id;}else{experience.id=experience.params.flashID='bcExperienceObj'+(brightcove.experienceNum++);}
return experience;};brightcove.copySnippetParams=function(experience,params){if(!brightcove.hasActiveX){params=experience.getElementsByTagName('param');}
var numParams=params.length;var param;for(var j=0;j<numParams;j++){param=params[j];if(brightcove.hasActiveX&&param.parentNode.id!=experience.id){continue;}
experience.params[param.name]=param.value;}
if(experience.params.bgcolor!=undefined)experience.flashParams.bgcolor=experience.params.bgcolor;if(experience.params.wmode!=undefined)experience.flashParams.wmode=experience.params.wmode;if(experience.params.seamlessTabbing!=undefined)experience.flashParams.seamlessTabbing=experience.params.seamlessTabbing;return experience;};brightcove.copyUrlParams=function(experience,urlParams){if(experience.params.autoStart==undefined&&urlParams.autoStart!=undefined){experience.params.autoStart=urlParams.autoStart;}
if(urlParams.debuggerID!=undefined){experience.params.debuggerID=urlParams.debuggerID;}
if(urlParams.forceHTML!=undefined&&urlParams.forceHTML!==''){experience.params.forceHTML=urlParams.forceHTML;}
if(urlParams.forceFlashIFrame!=undefined&&urlParams.forceFlashIFrame!==''){experience.params.forceFlashIFrame=urlParams.forceFlashIFrame;}
if(urlParams.debug!=undefined&&urlParams.debug!==''){experience.params.debug=urlParams.debug;}
if(urlParams.showNoContentMessage!=undefined&&urlParams.showNoContentMessage!=''){experience.params.showNoContentMessage=urlParams.showNoContentMessage;}
var overrideContent=(urlParams.playerID.length<1&&urlParams.playerKey.length<1)||(urlParams.playerID==experience.params.playerID)||(urlParams.playerKey==experience.params.playerKey);if(overrideContent){if(urlParams.titleID.length>0){experience.params.videoID=urlParams.titleID;experience.params["@videoPlayer"]=urlParams.titleID;experience.params.autoStart=(experience.params.autoStart!="false"&&urlParams.autoStart!="false");}
if(urlParams.lineupID.length>0){experience.params.lineupID=urlParams.lineupID;}}
return experience;};brightcove.determinePlayerType=function(experience,flashSupport,htmlSupport){if(flashSupport==null&&htmlSupport==false){return brightcove.playerType.NO_SUPPORT;}
if(experience.params.forceHTML){if(window.console){var message="The forceHTML parameter was used for the Brightcove player. This value should ONLY be used for";message+=" development and testing purposes and is not supported in production environments.";console.log(message);}
return brightcove.playerType.HTML;}
if(experience.params.forceFlashIFrame||(brightcove.isMetroIE()&&flashSupport==null)){return brightcove.playerType.FLASH_IFRAME;}
if(flashSupport!=null){if(brightcove.isFlashVersionSufficient(experience,flashSupport)){return brightcove.playerType.FLASH;}else{return brightcove.playerType.INSTALLER;}}
if(htmlSupport){if(brightcove.isSupportedHTMLDevice()||experience.params.htmlFallback){return brightcove.playerType.HTML;}}
return brightcove.playerType.NO_SUPPORT;};brightcove.isFlashVersionSufficient=function(experience,flashSupport){if(flashSupport==null)return false;var setMajorVersion=false;var requestedMajorVersion;var requestedMajorRevision;var requestedMinorRevision;if(experience.params.majorVersion!=undefined){requestedMajorVersion=parseInt(experience.params.majorVersion,10);setMajorVersion=true;}else{requestedMajorVersion=brightcove.majorVersion;}
if(experience.params.majorRevision!=undefined){requestedMajorRevision=parseInt(experience.params.majorRevision,10);}else{if(setMajorVersion){requestedMajorRevision=0;}else{requestedMajorRevision=brightcove.majorRevision;}}
if(experience.params.minorRevision!=undefined){requestedMinorRevision=parseInt(experience.params.minorRevision,10);}else{if(setMajorVersion){requestedMinorRevision=0;}else{requestedMinorRevision=brightcove.minorRevision;}}
return(flashSupport.majorVersion>requestedMajorVersion||(flashSupport.majorVersion==requestedMajorVersion&&flashSupport.majorRevision>requestedMajorRevision)||(flashSupport.majorVersion==requestedMajorVersion&&flashSupport.majorRevision==requestedMajorRevision&&flashSupport.minorRevision>=requestedMinorRevision));};brightcove.generateRequestUrl=function(experience,playerType,secureConnections){var file;if(playerType==brightcove.playerType.INSTALLER){file=brightcove.cdnURL+"/viewer/playerProductInstall.swf";var MMPlayerType=brightcove.hasActiveX?"ActiveX":"PlugIn";document.title=document.title.slice(0,47)+" - Flash Player Installation";var MMdoctitle=document.title;file+="?&MMredirectURL="+window.location+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle;brightcove.reportUpgradeRequired(experience);}else{if(secureConnections){file=brightcove.getPubURL(brightcove.secureServicesURL,brightcove.pubSecureHost,experience.params.pubCode);}else{file=brightcove.getPubURL(brightcove.servicesURL,brightcove.pubHost,experience.params.pubCode);}
var servlet=(playerType==brightcove.playerType.HTML)?brightcove.servlet.HTML:brightcove.servlet.AS3;file+='/viewer/'+servlet+'?'+brightcove.getOverrides();for(var config in experience.params){file+='&'+encodeURIComponent(config)+'='+encodeURIComponent(experience.params[config]);}}
return file;};brightcove.renderInstallGif=function(experience,secureConnections){var containerID='_container'+experience.id;var container=brightcove.createElement('span');if(experience.params.height.charAt(experience.params.height.length-1)=="%"){container.style.display='block';}else{container.style.display='inline-block';}
container.id=containerID;var cdnURL=secureConnections?brightcove.secureCDNURL:brightcove.cdnURL;var upgradeFlashImage=cdnURL.indexOf('.co.jp')>0?"upgrade_flash_player_kk.gif":"upgrade_flash_player2.gif";var linkHTML="<a href='http://www.adobe.com/go/getflash/' target='_blank'><img src='"+cdnURL+"/viewer/"+upgradeFlashImage+"' alt='Get Flash Player' width='314' height='200' border='0'></a>";experience.parentNode.replaceChild(container,experience);document.getElementById(containerID).innerHTML=linkHTML;};brightcove.renderExperience=function(experience,file,playerType,secureConnections){var experienceElement;var experienceID=experience.id;var container;var timeout=brightcove.flashTimeoutInterval;if(!(experience.params.playerKey||experience.params.playerID||experience.params.playerId||experience.params.playerid)){if(window.console){console.log("No playerID or playerKey was found for the Brightcove player, so it can not be rendered.");}
return;}
brightcove.experienceObjects[experienceID]=experience;var unminified=(brightcove.getParameter("unminified")=="true")||(experience.params.unminified==="true");if(experience.params.includeAPI==="true"&&!(brightcove._apiRequested||brightcove.api)){var source="/js/api/";if(unminified){source+="unminified/";}
source+="SmartPlayerAPI.js";var apiInclude=brightcove.createElement('script');apiInclude.type="text/javascript";var cdnURL=secureConnections?brightcove.secureCDNURL:brightcove.cdnURL;apiInclude.src=cdnURL+source;experience.parentNode.appendChild(apiInclude);brightcove._apiRequested=true;}
file+="&startTime="+new Date().getTime();if(playerType===brightcove.playerType.HTML){timeout=brightcove.htmlTimeoutInterval;file+="&refURL="+(window.document.referrer?window.document.referrer:'not available');if(unminified){file+="&unminified=true";}
experienceElement=brightcove.createIFrame(experience);experience.parentNode.replaceChild(experienceElement,experience);brightcove.experiences[experienceID]=experienceElement;experience.element=experienceElement;if(experience.params.videoID||experience.params.videoId){file+="&"+encodeURIComponent("@videoPlayer")+"="+encodeURIComponent(experience.params.videoID||experience.params.videoId);}
experienceElement.src=file;}else if(playerType===brightcove.playerType.FLASH_IFRAME){var currentCDN=secureConnections?brightcove.secureCDNURL:brightcove.cdnURL;var iframeURL=currentCDN+"/js/flash_iframe.html?parentPage="+window.location.toString().split("?")[0];iframeURL+='&currentCDN='+currentCDN;if(unminified){iframeURL+='&unminified='+unminified;}
experienceElement=brightcove.createIFrame(experience);experience.parentNode.replaceChild(experienceElement,experience);brightcove.experiences[experienceID]=experienceElement;experience.element=experienceElement;experienceElement.src=iframeURL;window.addEventListener('message',function(event){if(event.origin.split("/")[2]!==currentCDN.split("/")[2])return;var data=JSON.parse(event.data);if(data!="bcIframeInitialized"){return;}
var playerConfig;if(brightcove.hasActiveX){experience.flashParams.movie=file;var flashEmbedStr=brightcove.getFlashEmbedString(experience,secureConnections);playerConfig={activeX:flashEmbedStr,height:experience.params.height,id:'_container'+experience.id,file:file};}else{playerConfig=brightcove.getFlashObjectParams(experience,file);}
var playerConfigStr=JSON.stringify(playerConfig);experienceElement.contentWindow.postMessage(playerConfigStr,currentCDN);},false);window.addEventListener('message',function(event){if(event.origin.split("/")[2]!==currentCDN.split("/")[2])return;var data=JSON.parse(event.data);if(data.api&&brightcove.internal&&brightcove.internal._setAPICallback){if(data.api=="apiCallback"){brightcove.internal._setAPICallback(data.pid,data.callback,iframeURL);}else if(data.api=="loadEvent"){window[data.callback](data.event);}else if(data.api=="onTemplateReadyEvent"){brightcove[data.callback](data.event);}}},false);}else{if(brightcove.hasActiveX){experience.flashParams.movie=file;var flashEmbedStr=brightcove.getFlashEmbedString(experience,secureConnections);var containerID='_container'+experience.id;container=brightcove.createFlashEmbed(containerID,experience.params.height);experience.parentNode.replaceChild(container,experience);document.getElementById(containerID).innerHTML=flashEmbedStr;brightcove.experiences[experienceID]=container;}else{var flashObjectParams=brightcove.getFlashObjectParams(experience,file);experienceElement=brightcove.createFlashObject(flashObjectParams);experience.parentNode.replaceChild(experienceElement,experience);brightcove.experiences[experienceID]=experienceElement;}}
brightcove.timeouts[experience.id]=setTimeout(function(){brightcove.handleExperienceTimeout(experienceID);},timeout);};brightcove.createIFrame=function(experience){var iframeElement=brightcove.createElement('iframe');iframeElement.id=experience.id;iframeElement.width=experience.params.width;iframeElement.height=experience.params.height;iframeElement.className=experience.className;iframeElement.frameborder=0;iframeElement.scrolling="no";iframeElement.style.borderStyle="none";return iframeElement;};brightcove.getFlashEmbedString=function(experience,secureConnections){var options='';var flashParams=experience.flashParams;for(var pOption in flashParams){options+='<param name="'+pOption+'" value="'+experience.flashParams[pOption]+'" />';}
var protocol=secureConnections?"https":"http";return'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+' codebase="'+protocol+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+brightcove.majorVersion+','+brightcove.majorRevision+','+brightcove.minorRevision+',0"'
+' id="'+experience.id+'"'
+' width="'+experience.params.width+'"'
+' height="'+experience.params.height+'"'
+' type="application/x-shockwave-flash"'
+' class="BrightcoveExperience">'
+options
+'</object>';};brightcove.getFlashObjectParams=function(experience,file){var experienceObject={};experienceObject.type='application/x-shockwave-flash';experienceObject.data=file;experienceObject.id=experience.params.flashID;experienceObject.width=experience.params.width;experienceObject.height=experience.params.height;experienceObject.className=experience.className;experienceObject.seamlesstabbing=experience.flashParams.seamlessTabbing;for(var config in experience.flashParams){experienceObject["flashParam_"+config]=experience.flashParams[config];}
return experienceObject;};brightcove.createFlashEmbed=function(experienceId,height){var container=brightcove.createElement('span');if(height.charAt(height.length-1)=="%"){container.style.display='block';}else{container.style.display='inline-block';}
container.id=experienceId;return container;};brightcove.createFlashObject=function(playerConfig){var experienceElement=brightcove.createElement('object');experienceElement.type=playerConfig.type;experienceElement.data=playerConfig.data;experienceElement.id=playerConfig.id;experienceElement.width=playerConfig.width;experienceElement.height=playerConfig.height;experienceElement.className=playerConfig.className;experienceElement.setAttribute("seamlesstabbing",playerConfig.seamlessTabbing);var tempParam;var flashParamPrefix="flashParam_";for(var config in playerConfig){var flashParamInd=config.indexOf(flashParamPrefix);if(flashParamInd==0){tempParam=brightcove.createElement('param');tempParam.name=config.substring(flashParamPrefix.length);tempParam.value=playerConfig[config];experienceElement.appendChild(tempParam);}}
return experienceElement;};brightcove.handleExperienceTimeout=function(pID){brightcove.executeErrorHandlerForExperience(brightcove.experienceObjects[pID],{type:"templateError",errorType:"serviceUnavailable",code:brightcove.errorCodes.SERVICE_UNAVAILABLE,info:pID});};brightcove.reportPlayerLoad=function(pID){var timeout=brightcove.timeouts[pID];if(timeout){clearTimeout(timeout);}};brightcove.reportUpgradeRequired=function(pExperience){brightcove.executeErrorHandlerForExperience(pExperience,{type:"templateError",errorType:"upgradeRequiredForPlayer",code:brightcove.errorCodes.UPGRADE_REQUIRED_FOR_PLAYER,info:pExperience.id});};brightcove.checkFlashSupport=function(){var hasActiveX=(window.ActiveXObject!=undefined);return(hasActiveX)?brightcove.checkFlashSupportIE():brightcove.checkFlashSupportStandard();};brightcove.checkFlashSupportIE=function(){var versions;try{var flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var version=flash.GetVariable('$version');versions=/ ([0-9]+),([0-9]+),([0-9]+),/.exec(version);}catch(exception){return null;}
return{majorVersion:versions[1],majorRevision:versions[2],minorRevision:versions[3]};};brightcove.isMetroIE=function(){var version=0;if(navigator.appVersion.indexOf("MSIE")!=-1){var appSplit=navigator.appVersion.split("MSIE");if(appSplit.length>1){version=parseFloat(appSplit[1]);}}
if(version<10||isNaN(version)){return false;}
var activeXSupport=false;try{activeXSupport=!!new ActiveXObject("htmlfile");}catch(e){activeXSupport=false;}
return!activeXSupport;};brightcove.checkFlashSupportStandard=function(){var versions;var majorVersion;var majorRevision;var minorRevision;try{if(typeof navigator.plugins!='undefined'&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swfVersion=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var description=navigator.plugins["Shockwave Flash"+swfVersion].description;var filename=navigator.plugins["Shockwave Flash"+swfVersion].filename;if(filename.match){if(filename.toLowerCase().match(/lite/)){throw new Error();}}
versions=description.split(" ");majorVersion=versions[2].split(".")[0];majorRevision=versions[2].split(".")[1];minorRevision=versions[3];if(minorRevision==""){minorRevision=versions[4];}
if(minorRevision[0]=="d"){minorRevision=minorRevision.substring(1);}else if(minorRevision[0]=="r"){minorRevision=minorRevision.substring(1);if(minorRevision.indexOf("d")>0){minorRevision=minorRevision.substring(0,minorRevision.indexOf("d"));}}}else{throw new Error();}}else{return null;}}catch(exception){return null;}
return{majorVersion:majorVersion,majorRevision:majorRevision,minorRevision:minorRevision};};brightcove.checkHtmlSupport=function(){var v=brightcove.createElement('video');var videoSupport=true;if(!brightcove.userAgent.match(new RegExp("android","i"))){videoSupport=!!(v.canPlayType&&v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,''));}
if(brightcove.userAgent.match(/BlackBerry.*Version\/6\.0/)){return false;}
var canvasSupport=!!brightcove.createElement('canvas').getContext;return videoSupport&&canvasSupport;};brightcove.isSupportedHTMLDevice=function(pUAString){var types=["iPad","iPhone","iPod","android","Silk"];var numTypes=types.length;var uaString=pUAString||brightcove.userAgent;for(var i=0;i<numTypes;i++){if(uaString.match(new RegExp(types[i],"i"))){return true;}}
return false;};brightcove.getTechnology=function(pExperienceId){for(var id in brightcove.experiences){if(pExperienceId==id){return(brightcove.experiences[id].tagName=="object")?brightcove.playerType.FLASH:brightcove.playerType.HTML;}}
return brightcove.playerType.NO_SUPPORT;};brightcove.respondToMessages=function(pMessage){if(brightcove.verifyMessage(pMessage)){var messageData=pMessage.data;if(messageData.charAt(0)=="\""){if(window.JSON){messageData=window.JSON.parse(messageData);}else{messageData=brightcove.json_parse(messageData);}}
var messageParts=messageData.split("::");var type=messageParts[1];var messageJson=messageParts[2].split("\n").join(" ");var messageDataObject;if(window.JSON){messageDataObject=window.JSON.parse(messageJson);}else{messageDataObject=brightcove.json_parse(messageJson);}
switch(type){case"error":brightcove.executeMessageCallback(messageDataObject,brightcove.executeErrorHandlerForExperience);break;case"api":brightcove.handleAPICallForHTML(messageDataObject);break;case"handler":var event=brightcove.internal._convertDates(messageDataObject.event);try{brightcove.internal._handlers[messageDataObject.handler](event);}catch(e){}
break;case"asyncGetter":var data=brightcove.internal._convertDates(messageDataObject.data);brightcove.internal._handlers[messageDataObject.handler](data);break;}}};brightcove.verifyMessage=function(pMessage){return pMessage.data.match(/brightcove.player/);};brightcove.handleAPICallForHTML=function(pMessageObject){var experience=brightcove.experienceObjects[pMessageObject.id];if(experience==null){return;}
var id=experience.id;var method=pMessageObject.method;switch(method){case"initializeBridge":brightcove.reportPlayerLoad(id);if(pMessageObject.arguments[0]){if(brightcove.internal!=null){brightcove.internal._setAPICallback(id,null,pMessageObject.arguments[1]);brightcove.callHandlerForPlayer(experience,"templateLoadHandler",id);}else if(brightcove._apiRequested){brightcove._queuedAPICalls.push(pMessageObject);}}
break;case"callTemplateReady":if(brightcove._apiRequested&&!brightcove.internal){brightcove._queuedAPICalls.push(pMessageObject);}else{var event=pMessageObject.arguments;brightcove._addModuleToEvent(id,event);brightcove.callHandlerForPlayer(experience,"templateReadyHandler",event);}
break;}};brightcove._addModuleToEvent=function(pID,pEvent){if(pEvent.type!=null&&brightcove.api){var experience=brightcove.api.getExperience(pID);if(experience){pEvent.target=experience.getModule("experience");}}};brightcove.callHandlerForPlayer=function(pExperience,pHandler,pArgument){if(pExperience&&pExperience.params&&pExperience.params[pHandler]){var namespaceArray=pExperience.params[pHandler].split(".");var namespaces;if((namespaces=namespaceArray.length)>1){var trace=window;for(var i=0;i<namespaces;i++){trace=trace[namespaceArray[i]];}
if(typeof trace==="function"){trace(pArgument);}}else{window[pExperience.params[pHandler]](pArgument);}}};brightcove.executeErrorHandlerForExperience=function(pExperience,pErrorObject){brightcove.callHandlerForPlayer(pExperience,"templateErrorHandler",pErrorObject);};brightcove.executeMessageCallback=function(pMessageDataObject,pCallback){var experience;for(var experienceKey in brightcove.experienceObjects){experience=brightcove.experienceObjects[experienceKey];if(experience.element.src===pMessageDataObject.__srcUrl){delete pMessageDataObject.__srcUrl;pCallback(experience,pMessageDataObject);break;}}};brightcove.createExperience=function(pElement,pParentOrSibling,pAppend){if(!pElement.id||pElement.id.length<1){pElement.id='bcExperienceObj'+(brightcove.experienceNum++);}
if(pAppend){pParentOrSibling.appendChild(pElement);}else{pParentOrSibling.parentNode.insertBefore(pElement,pParentOrSibling);}
brightcove.createExperiences(null,pElement.id);};brightcove.removeExperience=function(pID){if(brightcove.experiences[pID]!=null){brightcove.experiences[pID].parentNode.removeChild(brightcove.experiences[pID]);}};brightcove.getURL=function(){var url;if(typeof window.location.search!='undefined'){url=window.location.search;}else{url=/(\?.*)$/.exec(document.location.href);}
return url;};brightcove.getOverrides=function(){var url=brightcove.getURL();var query=new RegExp('@[\\w\\.]+=[^&]+','g');var value=query.exec(url);var overrides="";while(value!=null){overrides+="&"+value;value=query.exec(url);}
return overrides;};brightcove.getParameter=function(pName,pDefaultValue){if(pDefaultValue==null)pDefaultValue="";var url=brightcove.getURL();var query=new RegExp(pName+'=([^&]*)');var value=query.exec(url);if(value!=null){return value[1];}else{return pDefaultValue;}};brightcove.createElement=function(el){if(document.createElementNS){return document.createElementNS('http://www.w3.org/1999/xhtml',el);}else{return document.createElement(el);}};brightcove.i18n={'BROWSER_TOO_OLD':'The browser you are using is too old. Please upgrade to the latest version of your browser.'};brightcove.removeListeners=function(){if(/KHTML/i.test(navigator.userAgent)){clearInterval(checkLoad);document.removeEventListener('load',brightcove.createExperiences,false);}
if(typeof document.addEventListener!='undefined'){document.removeEventListener('DOMContentLoaded',brightcove.createExperiences,false);document.removeEventListener('load',brightcove.createExperiences,false);}else if(typeof window.attachEvent!='undefined'){window.detachEvent('onload',brightcove.createExperiences);}};brightcove.getPubURL=function(source,host,pubCode){if(!pubCode||pubCode=="")return source;var re=/^([htps]{4,5}\:\/\/)([^\/\:]+)/i;host=host.replace("$pubcode$",pubCode).replace("$zoneprefix$$zone$",brightcove.pubSubdomain);return source.replace(re,"$1"+host);};brightcove.createExperiencesPostLoad=function(){brightcove.removeListeners();brightcove.createExperiences();};brightcove.encode=function(string){string=escape(string);string=string.replace(/\+/g,"%2B");string=string.replace(/\-/g,"%2D");string=string.replace(/\*/g,"%2A");string=string.replace(/\//g,"%2F");string=string.replace(/\./g,"%2E");string=string.replace(/_/g,"%5F");string=string.replace(/@/g,"%40");return string;};if(/KHTML/i.test(navigator.userAgent)){var checkLoad=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(checkLoad);brightcove.createExperiencesPostLoad();}},70);document.addEventListener('load',brightcove.createExperiencesPostLoad,false);}
if(typeof document.addEventListener!='undefined'){document.addEventListener('DOMContentLoaded',brightcove.createExperiencesPostLoad,false);document.addEventListener('load',brightcove.createExperiencesPostLoad,false);window.addEventListener("message",brightcove.respondToMessages,false);}else if(typeof window.attachEvent!='undefined'){window.attachEvent('onload',brightcove.createExperiencesPostLoad);}else{alert(brightcove.i18n.BROWSER_TOO_OLD);}}
brightcove.json_parse=(function(){"use strict";var state,stack,container,key,value,escapes={'\\':'\\','"':'"','/':'/','t':'\t','n':'\n','r':'\r','f':'\f','b':'\b'},string={go:function(){state='ok';},firstokey:function(){key=value;state='colon';},okey:function(){key=value;state='colon';},ovalue:function(){state='ocomma';},firstavalue:function(){state='acomma';},avalue:function(){state='acomma';}},number={go:function(){state='ok';},ovalue:function(){state='ocomma';},firstavalue:function(){state='acomma';},avalue:function(){state='acomma';}},action={'{':{go:function(){stack.push({state:'ok'});container={};state='firstokey';},ovalue:function(){stack.push({container:container,state:'ocomma',key:key});container={};state='firstokey';},firstavalue:function(){stack.push({container:container,state:'acomma'});container={};state='firstokey';},avalue:function(){stack.push({container:container,state:'acomma'});container={};state='firstokey';}},'}':{firstokey:function(){var pop=stack.pop();value=container;container=pop.container;key=pop.key;state=pop.state;},ocomma:function(){var pop=stack.pop();container[key]=value;value=container;container=pop.container;key=pop.key;state=pop.state;}},'[':{go:function(){stack.push({state:'ok'});container=[];state='firstavalue';},ovalue:function(){stack.push({container:container,state:'ocomma',key:key});container=[];state='firstavalue';},firstavalue:function(){stack.push({container:container,state:'acomma'});container=[];state='firstavalue';},avalue:function(){stack.push({container:container,state:'acomma'});container=[];state='firstavalue';}},']':{firstavalue:function(){var pop=stack.pop();value=container;container=pop.container;key=pop.key;state=pop.state;},acomma:function(){var pop=stack.pop();container.push(value);value=container;container=pop.container;key=pop.key;state=pop.state;}},':':{colon:function(){if(Object.hasOwnProperty.call(container,key)){throw new SyntaxError('Duplicate key "'+key+'"');}
state='ovalue';}},',':{ocomma:function(){container[key]=value;state='okey';},acomma:function(){container.push(value);state='avalue';}},'true':{go:function(){value=true;state='ok';},ovalue:function(){value=true;state='ocomma';},firstavalue:function(){value=true;state='acomma';},avalue:function(){value=true;state='acomma';}},'false':{go:function(){value=false;state='ok';},ovalue:function(){value=false;state='ocomma';},firstavalue:function(){value=false;state='acomma';},avalue:function(){value=false;state='acomma';}},'null':{go:function(){value=null;state='ok';},ovalue:function(){value=null;state='ocomma';},firstavalue:function(){value=null;state='acomma';},avalue:function(){value=null;state='acomma';}}};function debackslashify(text){return text.replace(/\\(?:u(.{4})|([^u]))/g,function(a,b,c){return b?String.fromCharCode(parseInt(b,16)):escapes[c];});}
return function(source,reviver){var r,tx=/^[\x20\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;state='go';stack=[];try{for(;;){r=tx.exec(source);if(!r){break;}
if(r[1]){action[r[1]][state]();}else if(r[2]){value=+r[2];number[state]();}else{value=debackslashify(r[3]);string[state]();}
source=source.slice(r[0].length);}}catch(e){state=e;}
if(state!=='ok'||(/[^\x20\t\n\r]/).test(source)){throw state instanceof SyntaxError?state:new SyntaxError('JSON');}
return typeof reviver==='function'?(function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}({'':value},'')):value;};}());
var APIModules={};APIModules.EXPERIENCE="experience";APIModules.CONTENT="content";APIModules.VIDEO_PLAYER="videoPlayer";APIModules.SOCIAL="social";APIModules.SEARCH="search";APIModules.CUE_POINTS="cuePoints";APIModules.ADVERTISING="advertising";APIModules.MENU="menu";APIModules.EFFECTS="effects";APIModules.CONVIVA="conviva";APIModules.CAPTIONS="captions";APIModules.AUTH="auth";APIModules.HTML5="_html5";if(brightcove==undefined){var brightcove={playerType:{FLASH:"flash",HTML:"html",INSTALLER:"installer",NO_SUPPORT:"nosupport"}};}
brightcove.instances={};brightcove.modules={};brightcove.ID_DELIM="|||";var bcPlayer=brightcove;brightcove.getExperience=function(pExperience){if(this.instances[pExperience]==null){if(window.console){console.log("Experience '"+pExperience+"' not found. Please ensure the name is correct and the API for the player is enabled.");}}
return this.instances[pExperience];};brightcove.getPlayer=brightcove.getExperience;brightcove.stringify=function(pObject){var type=typeof pObject;if(type=="function"||pObject==undefined){return"\"\"";}else if(type=="string"){return"\""+pObject.replace(/"/g,"\\\"")+"\"";}else if(pObject instanceof Array){var json="[";for(var i in pObject){if(typeof pObject[i]=="function"){json+=("\"\",");}else{json+=(this.stringify(pObject[i])+",");}}
if(json.substr(-1)==","){json=json.substr(0,json.length-1);}
return json+"]";}else if(type=="object"){var json="{";var i;var props=pObject.enumerableProperties;if(props){for(i in props){json+=("\""+props[i]+"\":"+this.stringify(pObject[props[i]])+",");}}else{for(i in pObject){if(typeof pObject[i]!="function"&&i!="__proto__"){json+=("\""+i+"\":"+this.stringify(pObject[i])+",");}}}
if(json.substr(-1)==","){json=json.substr(0,json.length-1);}
return json+"}";}else{return pObject;}}
function setAPICallback(pID,pCallback,pURL){brightcove.instances[pID]=new BrightcoveExperience(pCallback,pID,pURL);}
function BrightcoveExperience(pCallback,pID,pURL){if(pCallback==null){this.type=brightcove.playerType.HTML;this.playerURL=pURL;this.callback=brightcove.experiences[pID].contentWindow;}else{this.type=brightcove.playerType.FLASH;this.callback=pCallback;}
this.modules={};}
BrightcoveExperience.prototype.getModule=function(pModule){if(this.type==brightcove.playerType.HTML){pModule+=APIModules.HTML5;}
if(this.modules[pModule]==null&&brightcove.modules[pModule]){var module=new brightcove.modules[pModule](this);module.playerURL=this.playerURL;if(module.isPlayerDefined!=null){if(!module.isPlayerDefined()){return null;}}
this.modules[pModule]=module;}
return this.modules[pModule];};function APIModule(){this.handlers=[];}
APIModule.handlerCount=0;APIModule.getHandler=function(){return"bc_handler"+(APIModule.handlerCount++);};APIModule.callFlash=function(pCallback,pParams){var pCallbackArray=pCallback.split(brightcove.ID_DELIM);if(pCallbackArray.length<2)return;if(pCallbackArray[0].length<1)return;var pFlashId=pCallbackArray[0];var pCallback=pCallbackArray[1];var pExperience=document.getElementById(pFlashId);if(pExperience[pCallback]!=null){return pExperience[pCallback](BCXML.convertToXML(pParams,"js2flash"));}};APIModule.prototype.name="APIModule";APIModule.prototype.addEventListener=function(pEvent,pHandler,pPriority){var pNewHandler=APIModule.getHandler();this.handlers.push({handler:pHandler,bcHandler:pNewHandler,event:pEvent});window[pNewHandler]=pHandler;return this.callMethod("addEventListener",[pEvent,pNewHandler,pPriority]);};APIModule.prototype.removeEventListener=function(pEvent,pHandler){var pNum=this.handlers.length;for(var i=0;i<pNum;i++){if(this.handlers[i].event==pEvent&&this.handlers[i].handler==pHandler){var pBCHandler=this.handlers[i].bcHandler;this.handlers.splice(i,1);break;}}
if(pBCHandler==undefined)return;return this.callMethod("removeEventListener",[pEvent,pBCHandler]);};APIModule.prototype.callPlayer=function(pCallback,pParams){if(this.playerURL!=undefined){return this.callHTML5(pParams);}else{return APIModule.callFlash(pCallback,pParams);}};APIModule.prototype.callMethod=function(pMethod,pArguments){var pArgs=[];for(var i=0;i<pArguments.length;i++)pArgs.push(pArguments[i]);return this.callPlayer(this.callback,{module:this.name,method:pMethod,params:pArgs});};APIModule.prototype.callHTML5=function(pParams){if(!this.callback.postMessage){return null;}
var json;if(window.JSON){json=window.JSON.stringify(pParams);}else{json=brightcove.stringify(pParams);}
if(json){this.callback.postMessage(json,this.playerURL);}
return null;};var BCXML={};BCXML.convertToXML=function(pObj,pNodeName){if(pObj instanceof Function)return"";var pType=BCXML.getType(pObj);var pXML="<"+pType.name+pNodeName+">";if(pType.name=="obj"){for(var i in pObj){pXML+=BCXML.convertToXML(pObj[i],i);}}else if(pType.name=="arr"){for(var j=0;j<pObj.length;j++){pXML+=BCXML.convertToXML(pObj[j],j);}}else if(pType.name=="str"){pObj=BCXML.replaceEntities(pObj);pXML+=pObj;}else{pXML+=pObj;}
pXML+="</"+pType.name+pNodeName+">";return pXML;};BCXML.replaceEntities=function(pObj){pObj=pObj.replace(new RegExp("&","g"),"&amp;");pObj=pObj.replace(new RegExp("<","g"),"&lt;");pObj=pObj.replace(new RegExp(">","g"),"&gt;");return pObj;};BCXML.getType=function(pObj){switch(typeof(pObj)){case"boolean":return{name:"boo",type:Boolean};case"string":return{name:"str",type:String};case"number":return{name:"num",type:Number};default:if(pObj instanceof Array){return{name:"arr",type:Array};}else{return{name:"obj",type:Object};}}};BCAdvertisingEvent={}
BCAdvertisingEvent.AD_COMPLETE="adComplete";BCAdvertisingEvent.AD_POSTROLLS_COMPLETE="adPostRollsComplete";BCAdvertisingEvent.AD_PAUSE="adPause";BCAdvertisingEvent.AD_PROGRESS="adProgress";BCAdvertisingEvent.AD_RESUME="adResume";BCAdvertisingEvent.AD_RECEIVED="adReceived";BCAdvertisingEvent.AD_START="adStart";BCAdvertisingEvent.AD_CLICK="adClick";BCAdvertisingEvent.EXTERNAL_AD="externalAd";BCAdvertisingEvent.AD_RULES_READY="adRulesReady";brightcove.modules[APIModules.ADVERTISING]=AdvertisingAPI;function AdvertisingAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.ADVERTISING;}
var pttp=AdvertisingAPI.prototype=new APIModule();pttp.showAd=function(){return this.callMethod("showAd",arguments);};pttp.resumeAfterExternalAd=function(){return this.callMethod("resumeAfterExternalAd",arguments);};pttp.getEnabledAdFormats=function(){return this.callMethod("getEnabledAdFormats",arguments);};pttp.enableAdFormats=function(){return this.callMethod("enableAdFormats",arguments);};pttp.enableExternalAds=function(){return this.callMethod("enableExternalAds",arguments);};pttp.enableOverrideAds=function(){return this.callMethod("enableOverrideAds",arguments);};pttp.getExternalAdsEnabled=function(){return this.callMethod("getExternalAdsEnabled",arguments);};pttp.getOverrideAdsEnabled=function(){return this.callMethod("getOverrideAdsEnabled",arguments);};pttp.disableForExternalAd=function(){return this.callMethod("disableForExternalAd",arguments);};pttp.getCurrentAdProperties=function(){return this.callMethod("getCurrentAdProperties",arguments);};pttp.showSponsorMessage=function(){return this.callMethod("showSponsorMessage",arguments);};pttp.getShowSponsorMessage=function(){return this.callMethod("getShowSponsorMessage",arguments);};pttp.allowThirdPartyControl=function(){return this.callMethod("allowThirdPartyControl",arguments);};pttp.setThirdPartyTime=function(){return this.callMethod("setThirdPartyTime",arguments);};pttp.getThirdPartyTime=function(){return this.callMethod("getThirdPartyTime",arguments);};pttp.getAdPolicy=function(){return this.callMethod("getAdPolicy",arguments);};pttp.setAdPolicy=function(){return this.callMethod("setAdPolicy",arguments);};pttp.setAdRules=function(){return this.callMethod("setAdRules",arguments);};pttp.getCurrentAdRules=function(){return this.callMethod("getCurrentAdRules",arguments);};pttp.setAdTranslator=function(){return this.callMethod("setAdTranslator",arguments);};pttp.getCurrentAdTranslator=function(){return this.callMethod("getCurrentAdTranslator",arguments);};pttp.requestAd=function(){return this.callMethod("requestAd",arguments);};pttp.getStayInFullScreen=function(){return this.callMethod("getStayInFullScreen",arguments);};pttp.setStayInFullScreen=function(){return this.callMethod("setStayInFullScreen",arguments);};pttp.stopAd=function(){return this.callMethod("stopAd",arguments);};pttp.DEFAULT_AD_TRANSLATOR="defaultAdTranslator";BCAuthEvent={}
BCAuthEvent.AUTH_NEEDED="authNeeded";brightcove.modules[APIModules.AUTH]=AuthAPI;BCAuthService={}
BCAuthService.ADOBE_PASS="adobepass";BCAuthService.AIS="ais";function AuthAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.AUTH;}
var pttp=AuthAPI.prototype=new APIModule();pttp.checkStatus=function(){return this.callMethod("checkStatus",arguments);};pttp.showMessage=function(){return this.callMethod("showMessage",arguments);};pttp.removeMessage=function(){return this.callMethod("removeMessage",arguments);};pttp.playWithToken=function(){return this.callMethod("playWithToken",arguments);};BCCaptionsEvent={}
BCCaptionsEvent.DFXP_LOAD_SUCCESS="dfxpLoadSuccess";BCCaptionsEvent.DFXP_LOAD_ERROR="dfxpLoadError";brightcove.modules[APIModules.CAPTIONS]=CaptionsAPI;function CaptionsAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.CAPTIONS;}
var pttp=CaptionsAPI.prototype=new APIModule();pttp.loadDFXP=function(){return this.callMethod("loadDFXP",arguments);};pttp.setLanguage=function(){return this.callMethod("setLanguage",arguments);};pttp.getLanguages=function(){return this.callMethod("getLanguages",arguments);};pttp.getStyleOptions=function(){return this.callMethod("getStyleOptions",arguments);};pttp.setStyleOptions=function(){return this.callMethod("setStyleOptions",arguments);};pttp.getCaptionsEnabled=function(){return this.callMethod("getCaptionsEnabled",arguments);};pttp.setCaptionsEnabled=function(){return this.callMethod("setCaptionsEnabled",arguments);};BCContentEvent={}
BCContentEvent.VIDEO_LOAD="videoLoad";BCContentEvent.PLAYLIST_LOAD="playlistLoad";BCContentEvent.MEDIA_LOAD="mediaLoad";BCContentEvent.MEDIA_COLLECTION_LOAD="mediaCollectionLoad";brightcove.modules[APIModules.CONTENT]=ContentAPI;function ContentAPI(pExperience){this.experience=pExperience;if(pExperience){this.callback=pExperience.callback;}
this.name=APIModules.CONTENT;}
var pttp=ContentAPI.prototype=new APIModule();pttp.getAllMediaCollections=function(){return this.callMethod("getAllMediaCollections",arguments);};pttp.getAllMediaCollectionIDs=function(){return this.callMethod("getAllMediaCollectionIDs",arguments);};pttp.getAllPlaylists=function(){return this.callMethod("getAllPlaylists",arguments);};pttp.getAllPlaylistIDs=function(){return this.callMethod("getAllPlaylistIDs",arguments);};pttp.getMediaCollection=function(){return this.callMethod("getMediaCollection",arguments);};pttp.getMediaCollectionAsynch=function(){return this.callMethod("getMediaCollectionAsynch",arguments);};pttp.getPlaylist=function(){return this.callMethod("getPlaylist",arguments);};pttp.getPlaylistAsynch=function(){return this.callMethod("getPlaylistAsynch",arguments);};pttp.getMedia=function(){return this.callMethod("getMedia",arguments);};pttp.getMediaAsynch=function(){return this.callMethod("getMediaAsynch",arguments);};pttp.getVideo=function(){return this.callMethod("getVideo",arguments);};pttp.getVideoAsynch=function(){return this.callMethod("getVideoAsynch",arguments);};pttp.purgeAllContent=function(){return this.callMethod("purgeAllContent",arguments);};pttp.purgeMediaCollections=function(){return this.callMethod("purgeMediaCollections",arguments);};pttp.purgeMedia=function(){return this.callMethod("purgeMedia",arguments);};pttp.purgePlaylist=function(){return this.callMethod("purgePlaylist",arguments);};pttp.purgePlaylists=function(){return this.callMethod("purgePlaylists",arguments);};pttp.purgeVideo=function(){return this.callMethod("purgeVideo",arguments);};pttp.purgeVideos=function(){return this.callMethod("purgeVideos",arguments);};pttp.getMediaInGroupAsynch=function(){return this.callMethod("getMediaInGroupAsynch",arguments);};pttp.createRuntimeMediaCollection=function(){return this.callMethod("createRuntimeMediaCollection",arguments);};pttp.updateMedia=function(){return this.callMethod("updateMedia",arguments);};pttp.appendArgsToMediaRequest=function(){return this.callMethod("appendArgsToMediaRequest",arguments);};brightcove.modules[APIModules.CONVIVA]=ConvivaAPI;function ConvivaAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.CONVIVA;}
var pttp=ConvivaAPI.prototype=new APIModule();pttp.sendEvent=function(){return this.callMethod("sendEvent",arguments);};BCCuePointEvent={}
BCCuePointEvent.CUE="cuePoint";brightcove.modules[APIModules.CUE_POINTS]=CuePointsAPI;function CuePointsAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.CUE_POINTS;}
var pttp=CuePointsAPI.prototype=new APIModule();pttp.addCuePoints=function(){return this.callMethod("addCuePoints",arguments);};pttp.clearCodeCuePoints=function(){return this.callMethod("clearCodeCuePoints",arguments);};pttp.removeCodeCuePointsAtTime=function(){return this.callMethod("removeCodeCuePointsAtTime",arguments);};pttp.getCuePoints=function(){return this.callMethod("getCuePoints",arguments);};pttp.clearAdCuePoints=function(){return this.callMethod("clearAdCuePoints",arguments);};pttp.removeAdCuePointsAtTime=function(){return this.callMethod("removeAdCuePointsAtTime",arguments);};BCEffectsEvent={};BCEffectsEvent.BEGIN="animationBegin";BCEffectsEvent.COMPLETE="animationComplete";BCEffectsEvent.CHANGE="animationChange";brightcove.modules[APIModules.EFFECTS]=EffectsAPI;function EffectsAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.EFFECTS;}
EffectsAPI.animations={};var pttp=EffectsAPI.prototype=new APIModule();pttp.createAnimation=function(){var pID=this.callMethod("createAnimationJS",arguments);return this.getAnimation(pID);};pttp.getAnimation=function(){var pID=this.callMethod("getAnimationJS",arguments);if(pID){return this.getAnimationWrapper(pID);}
return null;};pttp.getAnimationWrapper=function(pID){var pAnimation=EffectsAPI.animations[pID];if(pAnimation==undefined){pAnimation=new EffectsAPIAnimation(pID,this.callback);EffectsAPI.animations[pID]=pAnimation;}
return pAnimation;};function EffectsAPIAnimation(pID,pCallback){this.id=pID;this.name=APIModules.EFFECTS;this.callback=pCallback;}
pttp=EffectsAPIAnimation.prototype=new APIModule();pttp.id=-1;pttp.callMethod=function(pMethod,pArguments){if(pArguments==undefined)pArguments=[];var pArgs=[this.id];for(var i=0;i<pArguments.length;i++)pArgs.push(pArguments[i]);return APIModule.callFlash(this.callback,{module:this.name,method:pMethod,params:pArgs});};pttp.start=function(){return this.callMethod("startJS",arguments);};pttp.stop=function(){return this.callMethod("stopJS",arguments);};pttp.apply=function(target){var targetID=target.getID();if(targetID){return this.callMethod("applyJS",[targetID]);}};pttp.addEventListener=function(pEvent,pHandler){var pNewHandler=APIModule.getHandler();this.handlers.push({handler:pHandler,bcHandler:pNewHandler,event:pEvent});window[pNewHandler]=pHandler;return this.callMethod("addEventListenerJS",[pEvent,pNewHandler]);};pttp.removeEventListener=function(pEvent,pHandler){var pNum=this.handlers.length;for(var i=0;i<pNum;i++){if(this.handlers[i].event==pEvent&&this.handlers[i].handler==pHandler){var pBCHandler=this.handlers[i].bcHandler;this.handlers.splice(i,1);break;}}
if(pBCHandler==undefined)return;return this.callMethod("removeEventListenerJS",[pEvent,pBCHandler]);};BCExperienceEvent={}
BCExperienceEvent.CONTENT_LOAD="contentLoad";BCExperienceEvent.USER_MESSAGE="userMessage";BCExperienceEvent.TEMPLATE_READY="templateReady";BCExperienceEvent.ENTER_FULLSCREEN="enterFullScreen";BCExperienceEvent.EXIT_FULLSCREEN="exitFullScreen";brightcove.modules[APIModules.EXPERIENCE]=ExperienceAPI;BCComponentModules={};function ExperienceAPI(pExperience){this.experience=pExperience;if(pExperience){this.callback=pExperience.callback;}
this.name=APIModules.EXPERIENCE;}
var pttp=ExperienceAPI.prototype=new APIModule();pttp.setSize=function(){return this.callMethod("setSize",arguments);};pttp.getPlayerName=function(){return this.callMethod("getPlayerName",arguments);};pttp.getReady=function(){return this.callMethod("getReady",arguments);};pttp.getWidth=function(){return this.callMethod("getWidth",arguments);};pttp.getHeight=function(){return this.callMethod("getHeight",arguments);};pttp.getAdEnabled=function(){return this.callMethod("getAdEnabled",arguments);};pttp.getEnabled=function(){return this.callMethod("getEnabled",arguments);};pttp.setEnabled=function(){return this.callMethod("setEnabled",arguments);};pttp.loadExperience=function(){return this.callMethod("loadExperience",arguments);};pttp.getLayout=function(){return this.callMethod("getLayout",arguments);};pttp.getAffiliateID=function(){return this.callMethod("getAffiliateID",arguments);};pttp.getExperienceID=function(){return this.callMethod("getExperienceID",arguments);};pttp.getPublisherID=function(){return this.callMethod("getPublisherID",arguments);};pttp.getExperienceURL=function(){return this.callMethod("getExperienceURL",arguments);};pttp.getReferrerURL=function(){return this.callMethod("getReferrerURL",arguments);};pttp.getConfiguredPropertiesForID=function(){return this.callMethod("getConfiguredPropertiesForID",arguments);};pttp.getPlayerParameter=function(){return this.callMethod("getPlayerParameter",arguments);};pttp.getLayoutRoot=function(){var pObj=this.callMethod("getLayoutRootJS",arguments);if(pObj!=null){if(BCComponentModules[pObj.elementName]!=null){return new BCComponentModules[pObj.elementName](this.experience,this.callback,pObj.elementID);}}
return null;};pttp.getElementByID=function(){var pNodeName=this.callMethod("getJSElementByID",arguments);if(pNodeName!=null){if(pNodeName=="VideoPlayer"||pNodeName=="VideoDisplay"){var pPlayerAPI=this.experience.getModule(APIModules.VIDEO_PLAYER);if(pPlayerAPI){pPlayerAPI.initializeComponentAPI();return pPlayerAPI;}}else if(BCComponentModules[pNodeName]!=null){return new BCComponentModules[pNodeName](this.experience,this.callback,arguments[0]);}}
return null;};pttp.getElementsByType=function(){var pIDs=this.callMethod("getJSElementsByType",arguments);var pElements=[];var pElement;for(var i in pIDs){if(typeof(pIDs[i])!="function"){pElement=this.getElementByID(pIDs[i]);if(pElement)pElements.push(pElement);}}
return pElements;};pttp.getModules=function(){return this.callMethod("getModules",arguments);};pttp.unload=function(){return this.callMethod("unload",arguments);};pttp.debug=function(){return this.callMethod("debug",arguments);};pttp.getUserCountry=function(){return this.callMethod("getUserCountry",arguments);};pttp.getTranslation=function(){return this.callMethod("getTranslation",arguments);};BCMenuEvent={}
BCMenuPage={}
BCMenuAdditionalMedia={}
BCMenuEvent.MENU_PAGE_OPEN="menuPageOpen";BCMenuEvent.MENU_PAGE_CLOSE="menuPageClose";BCMenuEvent.OVERLAY_MENU_OPEN="overlayMenuOpen";BCMenuEvent.OVERLAY_MENU_CLOSE="overlayMenuClose";BCMenuEvent.OVERLAY_MENU_PLAY_CLICK="overlayMenuPlayClick";BCMenuEvent.ICON_MENU_OPEN="iconMenuOpen";BCMenuEvent.ICON_MENU_CLOSE="iconMenuClose";BCMenuEvent.SEND_EMAIL_CLICK="sendEmailClick";BCMenuEvent.BLOG_POST_CLICK="blogPostClick";BCMenuEvent.COPY_LINK="copyLink";BCMenuEvent.COPY_CODE="copyCode";BCMenuEvent.VIDEO_REQUEST="videoRequest";BCMenuPage.EMAIL="Email";BCMenuPage.SHARE="Share";BCMenuPage.LINK="Link";BCMenuPage.CODE="Embed";BCMenuPage.INFO="Info";BCMenuAdditionalMedia.RELATED_VIDEOS="related videos";BCMenuAdditionalMedia.NEWEST_VIDEOS="newest videos";BCMenuAdditionalMedia.MOST_VIEWED_VIDEOS="most viewed videos";brightcove.modules[APIModules.MENU]=MenuAPI;function MenuAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.MENU;}
var pttp=MenuAPI.prototype=new APIModule();pttp.showIconMenu=function(){return this.callMethod("showIconMenu",arguments);};pttp.isIconMenuShowing=function(){return this.callMethod("isIconMenuShowing",arguments);};pttp.showMenuPage=function(){return this.callMethod("showMenuPage",arguments);};pttp.closeMenuPage=function(){return this.callMethod("closeMenuPage",arguments);};pttp.isMenuPageShowing=function(){return this.callMethod("isMenuPageShowing",arguments);};pttp.isOverlayMenuShowing=function(){return this.callMethod("isOverlayMenuShowing",arguments);};pttp.removeOverlayMenu=function(){return this.callMethod("removeOverlayMenu",arguments);};pttp.getCurrentMenuPage=function(){return this.callMethod("getCurrentMenuPage",arguments);};pttp.setOverlayMenuVisible=function(){return this.callMethod("setOverlayMenuVisible",arguments);};pttp.getOverlayMenuVisible=function(){return this.callMethod("getOverlayMenuVisible",arguments);};pttp.setAdditionalMediaForType=function(){return this.callMethod("setAdditionalMediaForType",arguments);};pttp.getAdditionalMediaForType=function(){return this.callMethod("getAdditionalMediaForType",arguments);};var bcAdditionalMediaCallback;pttp.setAdditionalMediaCallback=function(pCallback,pTypes){bcAdditionalMediaCallback=pCallback;return this.callMethod("setAdditionalMediaCallbackJS",["bcCallAdditionalMediaCallback",pTypes]);};function bcCallAdditionalMediaCallback(pType,pMedia){return bcAdditionalMediaCallback(pType,pMedia);};BCSearchEvent={};BCSearchEvent.RESULT="searchResult";BCSearchEvent.ERROR="searchError";brightcove.modules[APIModules.SEARCH]=SearchAPI;SortOrderType={ASC:"ASC",DESC:"DESC"};SortByType={PUBLISH_DATE:"PUBLISH_DATE",CREATION_DATE:"CREATION_DATE",MODIFIED_DATE:"MODIFIED_DATE",PLAYS_TOTAL:"PLAYS_TOTAL",PLAYS_TRAILING_WEEK:"PLAYS_TRAILING_WEEK"};function SearchAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.SEARCH;}
SearchAPI.searches={};var pttp=SearchAPI.prototype=new APIModule();pttp.findRelatedVideos=function(){var pID=this.callMethod("findRelatedVideosJS",arguments);return this.getVideoSearch(pID);};pttp.findVideosByText=function(){var pID=this.callMethod("findVideosByTextJS",arguments);return this.getVideoSearch(pID);};pttp.findVideosByTags=function(){var pID=this.callMethod("findVideosByTagsJS",arguments);return this.getVideoSearch(pID);};pttp.findAllVideos=function(){var pID=this.callMethod("findAllVideosJS",arguments);return this.getVideoSearch(pID);};pttp.getVideoSearch=function(pID){var pSearch=SearchAPI.searches[pID];if(pSearch==undefined){pSearch=new VideoSearch(pID,this.callback);SearchAPI.searches[pID]=pSearch;}
return pSearch;};pttp.getMaxItemsInMemory=function(){return this.callMethod("getMaxItemsInMemory",arguments);};pttp.setMaxItemsInMemory=function(){return this.callMethod("setMaxItemsInMemory",arguments);};function VideoSearch(pID,pCallback){this.id=pID;this.name=APIModules.SEARCH;this.callback=pCallback;}
pttp=VideoSearch.prototype=new APIModule();pttp.id=-1;pttp.callMethod=function(pMethod,pArguments){if(pArguments==undefined)pArguments=[];var pArgs=[this.id];for(var i=0;i<pArguments.length;i++)pArgs.push(pArguments[i]);return APIModule.callFlash(this.callback,{module:this.name,method:pMethod,params:pArgs});};pttp.getItems=function(){return this.callMethod("getItems",arguments);};pttp.getPage=function(){return this.callMethod("getPage",arguments);};pttp.getPageAsynch=function(){this.pageNumber=this.callMethod("getPageNumber");return this.callMethod("getPageAsynch",arguments);};pttp.getNextPage=function(){return this.callMethod("getNextPage",arguments);};pttp.getNextPageAsynch=function(){return this.callMethod("getNextPageAsynch",arguments);};pttp.getPreviousPage=function(){return this.callMethod("getPreviousPage",arguments);};pttp.getPreviousPageAsynch=function(){return this.callMethod("getPreviousPageAsynch",arguments);};pttp.getRow=function(){return this.callMethod("getRow",arguments);};pttp.getRowOnPage=function(){return this.callMethod("getRowOnPage",arguments);};pttp.purgeAll=function(){return this.callMethod("purgeAll",arguments);};pttp.purgePage=function(){return this.callMethod("purgePage",arguments);};pttp.getTotalRows=function(){return this.callMethod("getTotalRows",arguments);};pttp.getTotalPages=function(){return this.callMethod("getTotalPages",arguments);};pttp.getPageNumber=function(){return this.callMethod("getPageNumber",arguments);};pttp.getPageSize=function(){return this.callMethod("getPageSize",arguments);};pttp.getMaxPagesInMemory=function(){return this.callMethod("getMaxPagesInMemory",arguments);};pttp.setMaxPagesInMemory=function(){return this.callMethod("setMaxPagesInMemory",arguments);};BCSocialEvent={}
BCSocialEvent.EMBED_CODE_RETRIEVED="embedCodeRetrieved";BCSocialEvent.LINK_GENERATED="linkGenerated";brightcove.modules[APIModules.SOCIAL]=SocialAPI;function SocialAPI(pExperience){this.experience=pExperience;this.callback=pExperience.callback;this.name=APIModules.SOCIAL;}
var pttp=SocialAPI.prototype=new APIModule();pttp.shareVideoViaEmail=function(){return this.callMethod("shareVideoViaEmail",arguments);};pttp.getEmbedCode=function(){return this.callMethod("getEmbedCode",arguments);};pttp.setEmbedCode=function(){return this.callMethod("setEmbedCode",arguments);};pttp.setLink=function(){return this.callMethod("setLink",arguments);};pttp.getLink=function(){return this.callMethod("getLink",arguments);};pttp.isURLShortenedForMedia=function(){return this.callMethod("isURLShortenedForMedia",arguments);};pttp.getRSS=function(){return this.callMethod("getRSS",arguments);};pttp.enableBlogging=function(){return this.callMethod("enableBlogging",arguments);};if(BCMediaEvent==undefined){var BCMediaEvent={}
BCMediaEvent.BEGIN="mediaBegin";BCMediaEvent.BUFFER_BEGIN="mediaBufferBegin";BCMediaEvent.BUFFER_COMPLETE="mediaBufferComplete";BCMediaEvent.CHANGE="mediaChange";BCMediaEvent.COMPLETE="mediaComplete";BCMediaEvent.ERROR="mediaError";BCMediaEvent.MUTE_CHANGE="mediaMuteChange";BCMediaEvent.PLAY="mediaPlay";BCMediaEvent.PROGRESS="mediaProgress";BCMediaEvent.SEEK="mediaSeek";BCMediaEvent.SEEK_NOTIFY="mediaSeekNotify";BCMediaEvent.STOP="mediaStop";BCMediaEvent.VOLUME_CHANGE="mediaVolumeChange";}
var BCVideoEvent={}
BCVideoEvent.END_BUFFER="endBuffering";BCVideoEvent.RENDITION_CHANGE="renditionChange";BCVideoEvent.VIDEO_CHANGE="videoChange";BCVideoEvent.VIDEO_COMPLETE="videoComplete";BCVideoEvent.VIDEO_CONNECT="videoConnect";BCVideoEvent.VIDEO_LOAD="videoLoad";BCVideoEvent.VIDEO_PROGRESS="videoProgress";BCVideoEvent.VIDEO_START="videoStart";BCVideoEvent.VIDEO_STOP="videoStop";BCVideoEvent.VIDEO_MUTE="ui_mute";BCVideoEvent.VIDEO_SEEK="seek";BCVideoEvent.START_BUFFER="startBuffering";BCVideoEvent.STREAM_START="streamStart";BCVideoEvent.VOLUME_CHANGE="volumeChange";brightcove.modules[APIModules.VIDEO_PLAYER]=VideoPlayerAPI;function VideoPlayerAPI(pExperience){this.experience=pExperience;if(pExperience){this.callback=pExperience.callback;}
this.name=APIModules.VIDEO_PLAYER;}
var pttp=VideoPlayerAPI.prototype=new APIModule();pttp.initializeComponentAPI=function(){return this.callMethod("initializeComponentAPI",arguments);};pttp.getComponentAPI=function(pElementName,pElementID){if(pElementName!=null){if(pElementName=="VideoPlayer"||pElementName=="VideoDisplay"){var pPlayerAPI=this.experience.getModule(APIModules.VIDEO_PLAYER);pPlayerAPI.initializeComponentAPI();return pPlayerAPI;}else if(BCComponentModules[pElementName]!=null){return new BCComponentModules[pElementName](this.experience,this.callback,pElementID);}}
return null;};pttp.isPlayerDefined=function(){return this.callMethod("isPlayerDefined",arguments);};pttp.setVideoFilter=function(){return this.callMethod("setVideoFilter",arguments);};pttp.getCurrentVideo=function(){return this.callMethod("getCurrentVideo",arguments);};pttp.getCurrentRendition=function(){return this.callMethod("getCurrentRendition",arguments);};pttp.loadVideo=function(){return this.callMethod("loadVideo",arguments);};pttp.cueVideo=function(){return this.callMethod("cueVideo",arguments);};pttp.play=function(){return this.callMethod("play",arguments);};pttp.stop=function(){return this.callMethod("stop",arguments);};pttp.pause=function(){return this.callMethod("pause",arguments);};pttp.seek=function(){return this.callMethod("seek",arguments);};pttp.mute=function(){return this.callMethod("mute",arguments);};pttp.setVolume=function(){return this.callMethod("setVolume",arguments);};pttp.getVolume=function(){return this.callMethod("getVolume",arguments);};pttp.showVolumeControls=function(){return this.callMethod("showVolumeControls",arguments);};pttp.getVideoPosition=function(){return this.callMethod("getVideoPosition",arguments);};pttp.getVideoDuration=function(){return this.callMethod("getVideoDuration",arguments);};pttp.getVideoBytesLoaded=function(){return this.callMethod("getVideoBytesLoaded",arguments);};pttp.getVideoBytesTotal=function(){return this.callMethod("getVideoBytesTotal",arguments);};pttp.isPlaying=function(){return this.callMethod("isPlaying",arguments);};pttp.isMuted=function(){return this.callMethod("isMuted",arguments);};pttp.getContentTypeDisplayed=function(){return this.callMethod("getContentTypeDisplayed",arguments);};pttp.setSize=function(){return this.callMethod("setSize",arguments);};pttp.move=function(){return this.callMethod("move",arguments);};pttp.getX=function(){return this.callMethod("getX",arguments);};pttp.getY=function(){return this.callMethod("getY",arguments);};pttp.getDefinition=function(){return this.callMethod("getDefinition",arguments);};pttp.getID=function(){return this.callMethod("getID",arguments);};pttp.getWidth=function(){return this.callMethod("getWidth",arguments);};pttp.getHeight=function(){return this.callMethod("getHeight",arguments);};pttp.getDisplayWidth=function(){return this.callMethod("getDisplayWidth",arguments);};pttp.getDisplayHeight=function(){return this.callMethod("getDisplayHeight",arguments);};pttp.getCurrentVideoWidth=function(){return this.callMethod('getCurrentVideoWidth',arguments);};pttp.getCurrentVideoHeight=function(){return this.callMethod('getCurrentVideoHeight',arguments);};pttp.getCurrentDisplayX=function(){return this.callMethod('getCurrentDisplayX',arguments);}
pttp.getCurrentDisplayY=function(){return this.callMethod('getCurrentDisplayY',arguments);}
pttp.getCurrentDisplayWidth=function(){return this.callMethod('getCurrentDisplayWidth',arguments);};pttp.getCurrentDisplayHeight=function(){return this.callMethod('getCurrentDisplayHeight',arguments);};pttp.getEnabled=function(){return this.callMethod("getEnabled",arguments);};pttp.setStyles=function(){return this.callMethod("setStyles",arguments);};pttp.setEnabled=function(){return this.callMethod("setEnabled",arguments);};pttp.getVisible=function(){return this.callMethod("getVisible",arguments);};pttp.setVisible=function(){return this.callMethod("setVisible",arguments);};pttp.getAlpha=function(){return this.callMethod("getAlpha",arguments);};pttp.setAlpha=function(){return this.callMethod("setAlpha",arguments);};pttp.getBlendMode=function(){return this.callMethod("getBlendMode",arguments);};pttp.setBlendMode=function(){return this.callMethod("setBlendMode",arguments);};pttp.getRotation=function(){return this.callMethod("getRotation",arguments);};pttp.setRotation=function(){return this.callMethod("setRotation",arguments);};pttp.getIndex=function(){return this.callMethod("getIndex",arguments);};pttp.toggleVolumeControls=function(){return this.callMethod("toggleVolumeControls",arguments);};pttp.toggleMenuPage=function(){return this.callMethod("toggleMenuPage",arguments);};pttp.getContainer=function(){var pObj=this.callMethod("getContainerJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};pttp.getNextSibling=function(){var pObj=this.callMethod("getNextSiblingJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};pttp.getPreviousSibling=function(){var pObj=this.callMethod("getPreviousSiblingJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};pttp.getCSS=function(){return this.callMethod("getCSS",arguments);};pttp.mediaIsLive=function(){return this.callMethod("mediaIsLive",arguments);};pttp.setDynamicDeliveryParameters=function(){return this.callMethod("setDynamicDeliveryParameters",arguments);};pttp.removeUserMessage=function(){return this.callMethod("removeUserMessage",arguments);};pttp.enableInitialBandwidthDetection=function(){return this.callMethod("enableInitialBandwidthDetection",arguments);};pttp.getInitialBandwidthDetectionEnabled=function(){return this.callMethod("getInitialBandwidthDetectionEnabled",arguments);};pttp.setBufferCapacity=function(){return this.callMethod("setBufferCapacity",arguments);};pttp.getBufferCapacity=function(){return this.callMethod("getBufferCapacity",arguments);};pttp.setDefaultBufferTime=function(){return this.callMethod("setDefaultBufferTime",arguments);};pttp.getDefaultBufferTime=function(){return this.callMethod("getDefaultBufferTime",arguments);};pttp.getBufferLength=function(){return this.callMethod("getBufferLength",arguments);};pttp.getBackBufferLength=function(){return this.callMethod("getBackBufferLength",arguments);};pttp.getBackBufferCapacity=function(){return this.callMethod("getBackBufferCapacity",arguments);};pttp.setBackBufferCapacity=function(){return this.callMethod("setBackBufferCapacity",arguments);};pttp.setConnectOnLoad=function(){return this.callMethod("setConnectOnLoad",arguments);};pttp.setBitRateRange=function(){return this.callMethod("setBitRateRange",arguments);};pttp.requestRenditionChange=function(){return this.callMethod("requestRenditionChange",arguments);};pttp.getCurrentBandwidth=function(){return this.callMethod("getCurrentBandwidth",arguments);};pttp.getCurrentFrameRate=function(){return this.callMethod("getCurrentFrameRate",arguments);};pttp.setPrivacyMode=function(){return this.callMethod("setPrivacyMode",arguments);};pttp.getPrivacyMode=function(){return this.callMethod("getPrivacyMode",arguments);};pttp.getMediaControllerProperty=function(){return this.callMethod("getMediaControllerProperty",arguments);};var bcRenditionSelectionCallback;pttp.setRenditionSelectionCallback=function(pSelector){bcRenditionSelectionCallback=pSelector;if(bcRenditionSelectionCallback!=null){return this.callMethod("setRenditionSelectionCallbackJS",["bcCallRenditionSelectionCallback"]);}else{return this.callMethod("setRenditionSelectionCallbackJS",[]);}};function bcCallRenditionSelectionCallback(pContext){return bcRenditionSelectionCallback(pContext);};function ComponentAPI(){this.name=APIModules.EXPERIENCE;}
var pttp=ComponentAPI.prototype=new APIModule();pttp.callMethod=function(pMethod,pArguments){var pArgs=[];for(var i=0;i<pArguments.length;i++)pArgs.push(pArguments[i]);return APIModule.callFlash(this.callback,{module:this.name,element:this.elementID,method:"getComponentAPI",componentMethod:pMethod,params:pArgs});};pttp.getComponentAPI=function(pElementName,pElementID){if(pElementName!=null){if(pElementName=="VideoPlayer"||pElementName=="VideoDisplay"){var pPlayerAPI=this.experience.getModule(APIModules.VIDEO_PLAYER);pPlayerAPI.initializeComponentAPI();return pPlayerAPI;}else if(BCComponentModules[pElementName]!=null){return new BCComponentModules[pElementName](this.experience,this.callback,pElementID);}}
return null;};pttp.setSize=function(){return this.callMethod("setSize",arguments);};pttp.move=function(){return this.callMethod("move",arguments);};pttp.getX=function(){return this.callMethod("getX",arguments);};pttp.getY=function(){return this.callMethod("getY",arguments);};pttp.getVisible=function(){return this.callMethod("getVisible",arguments);};pttp.setVisible=function(){return this.callMethod("setVisible",arguments);};pttp.getIncludeInLayout=function(){return this.callMethod("getIncludeInLayout",arguments);};pttp.setIncludeInLayout=function(){return this.callMethod("setIncludeInLayout",arguments);};pttp.getAlpha=function(){return this.callMethod("getAlpha",arguments);};pttp.setAlpha=function(){return this.callMethod("setAlpha",arguments);};pttp.getDefinition=function(){return this.callMethod("getDefinition",arguments);};pttp.getID=function(){return this.callMethod("getID",arguments);};pttp.getWidth=function(){return this.callMethod("getWidth",arguments);};pttp.getHeight=function(){return this.callMethod("getHeight",arguments);};pttp.getIndex=function(){return this.callMethod("getIndex",arguments);};pttp.getContainer=function(){var pObj=this.callMethod("getContainerJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};pttp.getNextSibling=function(){var pObj=this.callMethod("getNextSiblingJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};pttp.getPreviousSibling=function(){var pObj=this.callMethod("getPreviousSiblingJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};function UIObjectAPI(pCallback,pElementID){this.callback=pCallback;this.elementID=pElementID;}
var pttp=UIObjectAPI.prototype=new ComponentAPI();pttp.getEnabled=function(){return this.callMethod("getEnabled",arguments);};pttp.setEnabled=function(){return this.callMethod("setEnabled",arguments);};pttp.getBlendMode=function(){return this.callMethod("getBlendMode",arguments);};pttp.setBlendMode=function(){return this.callMethod("setBlendMode",arguments);};pttp.getRotation=function(){return this.callMethod("getRotation",arguments);};pttp.setRotation=function(){return this.callMethod("setRotation",arguments);};pttp.setStyles=function(){return this.callMethod("setStyles",arguments);};pttp.getCSS=function(){return this.callMethod("getCSS",arguments);};if(BCMediaEvent==undefined){var BCMediaEvent={}
BCMediaEvent.BEGIN="mediaBegin";BCMediaEvent.BUFFER_BEGIN="mediaBufferBegin";BCMediaEvent.BUFFER_COMPLETE="mediaBufferComplete";BCMediaEvent.CHANGE="mediaChange";BCMediaEvent.COMPLETE="mediaComplete";BCMediaEvent.ERROR="mediaError";BCMediaEvent.MUTE_CHANGE="mediaMuteChange";BCMediaEvent.PLAY="mediaPlay";BCMediaEvent.PROGRESS="mediaProgress";BCMediaEvent.SEEK="mediaSeek";BCMediaEvent.STOP="mediaStop";BCMediaEvent.VOLUME_CHANGE="mediaVolumeChange";}
BCComponentModules["AudioPlayer"]=AudioPlayerAPI;function AudioPlayerAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=AudioPlayerAPI.prototype=new ComponentAPI();pttp.play=function(){return this.callMethod("play",arguments);};pttp.pause=function(){return this.callMethod("pause",arguments);};pttp.stop=function(){return this.callMethod("stop",arguments);};pttp.seek=function(){return this.callMethod("seek",arguments);};pttp.mute=function(){return this.callMethod("mute",arguments);};pttp.setVolume=function(){return this.callMethod("setVolume",arguments);};pttp.getVolume=function(){return this.callMethod("getVolume",arguments);};pttp.isPlaying=function(){return this.callMethod("isPlaying",arguments);};pttp.isMuted=function(){return this.callMethod("isMuted",arguments);};pttp.getMediaBytesLoaded=function(){return this.callMethod("getMediaBytesLoaded",arguments);};pttp.getMediaBytesTotal=function(){return this.callMethod("getMediaBytesTotal",arguments);};pttp.getMediaDuration=function(){return this.callMethod("getMediaDuration",arguments);};pttp.getMediaPosition=function(){return this.callMethod("getMediaPosition",arguments);};pttp.getCurrentMedia=function(){return this.callMethod("getCurrentMedia",arguments);};pttp.cueMedia=function(){return this.callMethod("cueMedia",arguments);};pttp.loadMedia=function(){return this.callMethod("loadMedia",arguments);};BCComponentModules["Banner"]=BannerAPI;function BannerAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=BannerAPI.prototype=new UIObjectAPI();BCComponentModules["Button"]=ButtonAPI;function ButtonAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ButtonAPI.prototype=new UIObjectAPI();pttp.getLabel=function(){return this.callMethod("getLabel",arguments);};pttp.setLabel=function(){return this.callMethod("setLabel",arguments);};pttp.setFont=function(){return this.callMethod("setFont",arguments);};pttp.getFont=function(){return this.callMethod("getFont",arguments);};pttp.setLabelSize=function(){return this.callMethod("setLabelSize",arguments);};pttp.getLabelSize=function(){return this.callMethod("getLabelSize",arguments);};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments);};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments);};pttp.getTruncateLabel=function(){return this.callMethod("getTruncateLabel",arguments);};pttp.setTruncateLabel=function(){return this.callMethod("setTruncateLabel",arguments);};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments);};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments);};pttp.getIsTruncated=function(){return this.callMethod("getIsTruncated",arguments);};pttp.getLabelWidth=function(){return this.callMethod("getLabelWidth",arguments);};pttp.getShowBack=function(){return this.callMethod("getShowBack",arguments);};pttp.setShowBack=function(){return this.callMethod("setShowBack",arguments);};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments);};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments);};pttp.getIconScale=function(){return this.callMethod("getIconScale",arguments);};pttp.setIconScale=function(){return this.callMethod("setIconScale",arguments);};pttp.getIconOffsetX=function(){return this.callMethod("getIconOffsetX",arguments);};pttp.setIconOffsetX=function(){return this.callMethod("setIconOffsetX",arguments);};pttp.getIconOffsetY=function(){return this.callMethod("getIconOffsetY",arguments);};pttp.setIconOffsetY=function(){return this.callMethod("setIconOffsetY",arguments);};pttp.getLabelOffsetX=function(){return this.callMethod("getLabelOffsetX",arguments);};pttp.setLabelOffsetX=function(){return this.callMethod("setLabelOffsetX",arguments);};pttp.getLabelOffsetY=function(){return this.callMethod("getLabelOffsetY",arguments);};pttp.setLabelOffsetY=function(){return this.callMethod("setLabelOffsetY",arguments);};pttp.getLabelBuffer=function(){return this.callMethod("getLabelBuffer",arguments);};pttp.setLabelBuffer=function(){return this.callMethod("setLabelBuffer",arguments);};pttp.getIconAlignmentH=function(){return this.callMethod("getIconAlignmentH",arguments);};pttp.setIconAlignmentH=function(){return this.callMethod("setIconAlignmentH",arguments);};pttp.getIconAlignmentV=function(){return this.callMethod("getIconAlignmentV",arguments);};pttp.setIconAlignmentV=function(){return this.callMethod("setIconAlignmentV",arguments);};pttp.getLabelAlignmentH=function(){return this.callMethod("getLabelAlignmentH",arguments);};pttp.setLabelAlignmentH=function(){return this.callMethod("setLabelAlignmentH",arguments);};pttp.getLabelAlignmentV=function(){return this.callMethod("getLabelAlignmentV",arguments);};pttp.setLabelAlignmentV=function(){return this.callMethod("setLabelAlignmentV",arguments);};pttp.getIconName=function(){return this.callMethod("getIconName",arguments);};pttp.setIconName=function(){return this.callMethod("setIconName",arguments);};BCComponentModules["ChromelessVideoPlayer"]=ChromelessVideoPlayerAPI;function ChromelessVideoPlayerAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;this.initializeComponentAPI();}
var pttp=ChromelessVideoPlayerAPI.prototype=new VideoPlayerAPI();pttp.callChromelessComponentMethod=function(pMethod,pArguments){var args=[];for(var i=0;i<pArguments.length;i++)args.push(pArguments[i]);return APIModule.callFlash(this.callback,{module:APIModules.EXPERIENCE,element:this.elementID,method:"getComponentAPI",componentMethod:pMethod,params:args});};pttp.getControls=function(){var controls=this.callChromelessComponentMethod("getControlsJS",arguments);if(controls){return this.getComponentAPI(controls.elementName,controls.elementID);}
return null;};pttp.showControls=function(){return this.callChromelessComponentMethod("showControls",arguments);};pttp.getControlsVisible=function(){return this.callChromelessComponentMethod("getControlsVisible",arguments);};pttp.getIncludeInLayout=function(){return this.callChromelessComponentMethod("getIncludeInLayout",arguments);};pttp.setIncludeInLayout=function(){return this.callChromelessComponentMethod("setIncludeInLayout",arguments);};BCComponentModules["ComboBox"]=ComboBoxAPI;function ComboBoxAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ComboBoxAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments);};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments);};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments);};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments);};pttp.getData=function(){return this.callMethod("getData",arguments);};pttp.setData=function(){return this.callMethod("setData",arguments);};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments);};pttp.getScrollerWidth=function(){return this.callMethod("getScrollerWidth",arguments);};pttp.setScrollerWidth=function(){return this.callMethod("setScrollerWidth",arguments);};pttp.getScrollerInset=function(){return this.callMethod("getScrollerInset",arguments);};pttp.setScrollerInset=function(){return this.callMethod("setScrollerInset",arguments);};pttp.getItemLeading=function(){return this.callMethod("getItemLeading",arguments);};pttp.setItemLeading=function(){return this.callMethod("setItemLeading",arguments);};pttp.getItemInsetH=function(){return this.callMethod("getItemInsetH",arguments);};pttp.setItemInsetH=function(){return this.callMethod("setItemInsetH",arguments);};pttp.getItemInsetV=function(){return this.callMethod("getItemInsetV",arguments);};pttp.setItemInsetV=function(){return this.callMethod("setItemInsetV",arguments);};pttp.getRowHeight=function(){return this.callMethod("getRowHeight",arguments);};pttp.setRowHeight=function(){return this.callMethod("setRowHeight",arguments);};pttp.getLabelBufferLeft=function(){return this.callMethod("getLabelBufferLeft",arguments);};pttp.setLabelBufferLeft=function(){return this.callMethod("setLabelBufferLeft",arguments);};pttp.getLabelBufferRight=function(){return this.callMethod("getLabelBufferRight",arguments);};pttp.setLabelBufferRight=function(){return this.callMethod("setLabelBufferRight",arguments);};pttp.getLabelBufferTop=function(){return this.callMethod("getLabelBufferTop",arguments);};pttp.setLabelBufferTop=function(){return this.callMethod("setLabelBufferTop",arguments);};pttp.getAnimated=function(){return this.callMethod("getAnimated",arguments);};pttp.setAnimated=function(){return this.callMethod("setAnimated",arguments);};pttp.getLabelField=function(){return this.callMethod("getLabelField",arguments);};pttp.setLabelField=function(){return this.callMethod("setLabelField",arguments);};pttp.getLabel=function(){return this.callMethod("getLabel",arguments);};pttp.setLabel=function(){return this.callMethod("setLabel",arguments);};function ContainerAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ContainerAPI.prototype=new UIObjectAPI();pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments);};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments);};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments);};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments);};pttp.getBackgroundColor=function(){return this.callMethod("getBackgroundColor",arguments);};pttp.setBackgroundColor=function(){return this.callMethod("setBackgroundColor",arguments);};pttp.getBackgroundImage=function(){return this.callMethod("getBackgroundImage",arguments);};pttp.setBackgroundImage=function(){return this.callMethod("setBackgroundImage",arguments);};pttp.getGutter=function(){return this.callMethod("getGutter",arguments);};pttp.setGutter=function(){return this.callMethod("setGutter",arguments);};pttp.getPadding=function(){return this.callMethod("getPadding",arguments);};pttp.setPadding=function(){return this.callMethod("setPadding",arguments);};pttp.appendChild=function(){return this.callMethod("appendChild",arguments);};pttp.insertChildAt=function(){return this.callMethod("insertChildAt",arguments);};pttp.removeChildByID=function(){return this.callMethod("removeChildByID",arguments);};pttp.getNumChildren=function(){return this.callMethod("getNumChildren",arguments);};pttp.removeChildAt=function(){return this.callMethod("removeChildAt",arguments);};pttp.getChildAt=function(){var pObj=this.callMethod("getChildAtJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};BCComponentModules["ExpandingBanner"]=ExpandingBannerAPI;function ExpandingBannerAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ExpandingBannerAPI.prototype=new UIObjectAPI();pttp.expand=function(){return this.callMethod("expand",arguments);};pttp.contract=function(){return this.callMethod("contract",arguments);};pttp.getExpanded=function(){return this.callMethod("getExpanded",arguments);};pttp.synchBannerWithExternal=function(){return this.callMethod("synchBannerWithExternal",arguments);};BCComponentModules["GraphicBlock"]=GraphicBlockAPI;function GraphicBlockAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=GraphicBlockAPI.prototype=new UIObjectAPI();BCComponentModules["Image"]=ImageAPI;function ImageAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ImageAPI.prototype=new UIObjectAPI();pttp.setSource=function(){return this.callMethod("setSource",arguments);};pttp.getSource=function(){return this.callMethod("getSource",arguments);};pttp.getScaleMode=function(){return this.callMethod("getScaleMode",arguments);};pttp.setScaleMode=function(){return this.callMethod("setScaleMode",arguments);};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments);};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments);};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments);};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments);};pttp.getURL=function(){return this.callMethod("getURL",arguments);};pttp.setURL=function(){return this.callMethod("setURL",arguments);};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments);};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments);};pttp.getInset=function(){return this.callMethod("getInset",arguments);};pttp.setInset=function(){return this.callMethod("setInset",arguments);};pttp.getContentWidth=function(){return this.callMethod("getContentWidth",arguments);};pttp.getContentHeight=function(){return this.callMethod("getContentHeight",arguments);};BCComponentModules["Label"]=LabelAPI;function LabelAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=LabelAPI.prototype=new UIObjectAPI();pttp.setText=function(){return this.callMethod("setText",arguments);};pttp.getText=function(){return this.callMethod("getText",arguments);};pttp.setType=function(){return this.callMethod("setType",arguments);};pttp.getType=function(){return this.callMethod("getType",arguments);};pttp.setFont=function(){return this.callMethod("setFont",arguments);};pttp.getFont=function(){return this.callMethod("getFont",arguments);};pttp.setColor=function(){return this.callMethod("setColor",arguments);};pttp.getColor=function(){return this.callMethod("getColor",arguments);};pttp.setTextSize=function(){return this.callMethod("setTextSize",arguments);};pttp.getTextSize=function(){return this.callMethod("getTextSize",arguments);};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments);};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments);};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments);};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments);};pttp.setUnderline=function(){return this.callMethod("setUnderline",arguments);};pttp.getUnderline=function(){return this.callMethod("getUnderline",arguments);};pttp.setHTMLEnabled=function(){return this.callMethod("setHTMLEnabled",arguments);};pttp.getHTMLEnabled=function(){return this.callMethod("getHTMLEnabled",arguments);};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments);};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments);};pttp.setTruncate=function(){return this.callMethod("setTruncate",arguments);};pttp.getTruncate=function(){return this.callMethod("getTruncate",arguments);};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments);};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments);};pttp.getIsTruncated=function(){return this.callMethod("getIsTruncated",arguments);};pttp.getTextWidth=function(){return this.callMethod("getTextWidth",arguments);};pttp.getTextHeight=function(){return this.callMethod("getTextHeight",arguments);};BCComponentModules["LayoutBox"]=LayoutBoxAPI;function LayoutBoxAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=LayoutBoxAPI.prototype=new ComponentAPI();pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments);};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments);};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments);};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments);};pttp.getBackgroundColor=function(){return this.callMethod("getBackgroundColor",arguments);};pttp.setBackgroundColor=function(){return this.callMethod("setBackgroundColor",arguments);};pttp.getBackgroundImage=function(){return this.callMethod("getBackgroundImage",arguments);};pttp.setBackgroundImage=function(){return this.callMethod("setBackgroundImage",arguments);};pttp.getGutter=function(){return this.callMethod("getGutter",arguments);};pttp.setGutter=function(){return this.callMethod("setGutter",arguments);};pttp.getPadding=function(){return this.callMethod("getPadding",arguments);};pttp.setPadding=function(){return this.callMethod("setPadding",arguments);};pttp.appendChild=function(){return this.callMethod("appendChild",arguments);};pttp.insertChildAt=function(){return this.callMethod("insertChildAt",arguments);};pttp.removeChildByID=function(){return this.callMethod("removeChildByID",arguments);};pttp.getNumChildren=function(){return this.callMethod("getNumChildren",arguments);};pttp.removeChildAt=function(){return this.callMethod("removeChildAt",arguments);};pttp.getChildAt=function(){var pObj=this.callMethod("getChildAtJS",arguments);if(pObj){return this.getComponentAPI(pObj.elementName,pObj.elementID);}
return null;};BCComponentModules["Link"]=LinkAPI;function LinkAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=LinkAPI.prototype=new UIObjectAPI();pttp.setText=function(){return this.callMethod("setText",arguments);};pttp.getText=function(){return this.callMethod("getText",arguments);};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments);};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments);};pttp.setFont=function(){return this.callMethod("setFont",arguments);};pttp.getFont=function(){return this.callMethod("getFont",arguments);};pttp.setTextSize=function(){return this.callMethod("setTextSize",arguments);};pttp.getTextSize=function(){return this.callMethod("getTextSize",arguments);};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments);};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments);};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments);};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments);};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments);};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments);};pttp.getURL=function(){return this.callMethod("getURL",arguments);};pttp.setURL=function(){return this.callMethod("setURL",arguments);};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments);};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments);};BCComponentModules["List"]=ListAPI;function ListAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ListAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments);};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments);};pttp.previous=function(){return this.callMethod("previous",arguments);};pttp.next=function(){return this.callMethod("next",arguments);};pttp.scrollTo=function(){return this.callMethod("scrollTo",arguments);};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments);};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments);};pttp.getData=function(){return this.callMethod("getData",arguments);};pttp.setData=function(){return this.callMethod("setData",arguments);};pttp.showPlaylist=function(){return this.callMethod("showPlaylist",arguments);};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments);};pttp.getAutomaticAdvance=function(){return this.callMethod("getAutomaticAdvance",arguments);};pttp.setAutomaticAdvance=function(){return this.callMethod("setAutomaticAdvance",arguments);};pttp.getScrollerWidth=function(){return this.callMethod("getScrollerWidth",arguments);};pttp.setScrollerWidth=function(){return this.callMethod("setScrollerWidth",arguments);};pttp.getScrollerInset=function(){return this.callMethod("getScrollerInset",arguments);};pttp.setScrollerInset=function(){return this.callMethod("setScrollerInset",arguments);};pttp.getItemLeading=function(){return this.callMethod("getItemLeading",arguments);};pttp.setItemLeading=function(){return this.callMethod("setItemLeading",arguments);};pttp.getItemInsetH=function(){return this.callMethod("getItemInsetH",arguments);};pttp.setItemInsetH=function(){return this.callMethod("setItemInsetH",arguments);};pttp.getItemInsetV=function(){return this.callMethod("getItemInsetV",arguments);};pttp.setItemInsetV=function(){return this.callMethod("setItemInsetV",arguments);};pttp.getRowHeight=function(){return this.callMethod("getRowHeight",arguments);};pttp.setRowHeight=function(){return this.callMethod("setRowHeight",arguments);};BCComponentModules["LiveButton"]=ButtonAPI;BCComponentModules["Mask"]=MaskAPI;function MaskAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=MaskAPI.prototype=new UIObjectAPI();BCComponentModules["MediaControls"]=MediaControlsAPI;function MediaControlsAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=MediaControlsAPI.prototype=new ContainerAPI();BCComponentModules["Module"]=ModuleAPI;function ModuleAPI(pExperience,pCallback,pElementID){this.name=APIModules.EXPERIENCE;this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;var methods=this.experience.getModule("experience").callMethod("getCustomModuleMethods",[pElementID]);var method;for(var i=0;i<methods.length;i++){method=methods[i];this[method]=(function(methodName){return function(){return this.callMethod(methodName,arguments);}})(method);}}
var pttp=ModuleAPI.prototype=new APIModule();pttp.callMethod=function(pMethod,pArguments){var args=[];for(var i=0;i<pArguments.length;i++){args.push(pArguments[i]);}
return APIModule.callFlash(this.callback,{module:this.name,element:this.elementID,method:"getComponentAPI",componentMethod:pMethod,params:args});};BCComponentModules["Playhead"]=PlayheadAPI;function PlayheadAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=PlayheadAPI.prototype=new UIObjectAPI();pttp.getSliderWidth=function(){return this.callMethod("getSliderWidth",arguments);};pttp.setSliderWidth=function(){return this.callMethod("setSliderWidth",arguments);};pttp.getAutohideSlider=function(){return this.callMethod("getAutohideSlider",arguments);};pttp.setAutohideSlider=function(){return this.callMethod("setAutohideSlider",arguments);};if(BCLoaderEvent==undefined){var BCLoaderEvent={};BCLoaderEvent.PROGRESS="loaderProgress";BCLoaderEvent.INIT="loaderInit";BCLoaderEvent.COMPLETE="loaderComplete";BCLoaderEvent.ERROR="loaderError";}
if(BCLoaderState==undefined){var BCLoaderState={};BCLoaderState.DEFAULT="default";BCLoaderState.LOADING="loading";BCLoaderState.LOADED="loaded";BCLoaderState.ERROR="error";}
BCComponentModules["SWFLoader"]=SWFLoaderAPI;function SWFLoaderAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=SWFLoaderAPI.prototype=new UIObjectAPI();pttp.getState=function(){return this.callMethod("getState",arguments);}
pttp.setSource=function(){return this.callMethod("setSource",arguments);};pttp.getSource=function(){return this.callMethod("getSource",arguments);};pttp.callSWFMethod=function(){return this.callMethod("callSWFMethod",arguments);};BCComponentModules["TabBar"]=TabBarAPI;function TabBarAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=TabBarAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments);};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments);};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments);};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments);};pttp.getData=function(){return this.callMethod("getData",arguments);};pttp.setData=function(){return this.callMethod("setData",arguments);};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments);};pttp.getAutoSizeTabs=function(){return this.callMethod("getAutoSizeTabs",arguments);};pttp.setAutoSizeTabs=function(){return this.callMethod("setAutoSizeTabs",arguments);};pttp.getTabWidth=function(){return this.callMethod("getTabWidth",arguments);};pttp.setTabWidth=function(){return this.callMethod("setTabWidth",arguments);};pttp.getLabelBuffer=function(){return this.callMethod("getLabelBuffer",arguments);};pttp.setLabelBuffer=function(){return this.callMethod("setLabelBuffer",arguments);};pttp.getLabelField=function(){return this.callMethod("getLabelField",arguments);};pttp.setLabelField=function(){return this.callMethod("setLabelField",arguments);};pttp.getTabPadding=function(){return this.callMethod("getTabPadding",arguments);};pttp.setTabPadding=function(){return this.callMethod("setTabPadding",arguments);};pttp.getTabAlign=function(){return this.callMethod("getTabAlign",arguments);};pttp.setTabAlign=function(){return this.callMethod("setTabAlign",arguments);};pttp.getIncludeMenu=function(){return this.callMethod("getIncludeMenu",arguments);};pttp.setIncludeMenu=function(){return this.callMethod("setIncludeMenu",arguments);};pttp.getMenuWidth=function(){return this.callMethod("getMenuWidth",arguments);};pttp.setMenuWidth=function(){return this.callMethod("setMenuWidth",arguments);};pttp.getMenuRowHeight=function(){return this.callMethod("getMenuRowHeight",arguments);};pttp.setMenuRowHeight=function(){return this.callMethod("setMenuRowHeight",arguments);};pttp.getMenuItemInset=function(){return this.callMethod("getMenuItemInset",arguments);};pttp.setMenuItemInset=function(){return this.callMethod("setMenuItemInset",arguments);};pttp.getMaxMenuRows=function(){return this.callMethod("getMaxMenuRows",arguments);};pttp.setMaxMenuRows=function(){return this.callMethod("setMaxMenuRows",arguments);};pttp.getHideSingleTab=function(){return this.callMethod("getHideSingleTab",arguments);};pttp.setHideSingleTab=function(){return this.callMethod("setHideSingleTab",arguments);};pttp.appendTab=function(){return this.callMethod("appendTab",arguments);};pttp.insertTabAt=function(){return this.callMethod("insertTabAt",arguments);};pttp.replaceTabAt=function(){return this.callMethod("replaceTabAt",arguments);};pttp.removeTabAt=function(){return this.callMethod("removeTabAt",arguments);};BCComponentModules["TextRegion"]=TextRegionAPI;function TextRegionAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=TextRegionAPI.prototype=new ContainerAPI();BCComponentModules["TileList"]=TileListAPI;function TileListAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=TileListAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments);};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments);};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments);};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments);};pttp.getData=function(){return this.callMethod("getData",arguments);};pttp.setData=function(){return this.callMethod("setData",arguments);};pttp.showPlaylist=function(){return this.callMethod("showPlaylist",arguments);};pttp.previous=function(){return this.callMethod("previous",arguments);};pttp.next=function(){return this.callMethod("next",arguments);};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments);};pttp.getAutomaticAdvance=function(){return this.callMethod("getAutomaticAdvance",arguments);};pttp.setAutomaticAdvance=function(){return this.callMethod("setAutomaticAdvance",arguments);};pttp.getButtonOffsetX=function(){return this.callMethod("getButtonOffsetX",arguments);};pttp.setButtonOffsetX=function(){return this.callMethod("setButtonOffsetX",arguments);};pttp.getButtonOffsetY=function(){return this.callMethod("getButtonOffsetY",arguments);};pttp.setButtonOffsetY=function(){return this.callMethod("setButtonOffsetY",arguments);};pttp.getButtonSize=function(){return this.callMethod("getButtonSize",arguments);};pttp.setButtonSize=function(){return this.callMethod("setButtonSize",arguments);};pttp.getNumRows=function(){return this.callMethod("getNumRows",arguments);};pttp.setNumRows=function(){return this.callMethod("setNumRows",arguments);};pttp.getNumColumns=function(){return this.callMethod("getNumColumns",arguments);};pttp.setNumColumns=function(){return this.callMethod("setNumColumns",arguments);};pttp.getRowHeight=function(){return this.callMethod("getRowHeight",arguments);};pttp.setRowHeight=function(){return this.callMethod("setRowHeight",arguments);};pttp.getColumnWidth=function(){return this.callMethod("getColumnWidth",arguments);};pttp.setColumnWidth=function(){return this.callMethod("setColumnWidth",arguments);};pttp.getColumnGutter=function(){return this.callMethod("getColumnGutter",arguments);};pttp.setColumnGutter=function(){return this.callMethod("setColumnGutter",arguments);};pttp.getRowGutter=function(){return this.callMethod("getRowGutter",arguments);};pttp.setRowGutter=function(){return this.callMethod("setRowGutter",arguments);};pttp.getContentInsetV=function(){return this.callMethod("getContentInsetV",arguments);};pttp.setContentInsetV=function(){return this.callMethod("setContentInsetV",arguments);};pttp.getContentInsetH=function(){return this.callMethod("getContentInsetH",arguments);};pttp.setContentInsetH=function(){return this.callMethod("setContentInsetH",arguments);};pttp.setScrollDirection=function(){return this.callMethod("setScrollDirection",arguments);};pttp.getScrollDirection=function(){return this.callMethod("getScrollDirection",arguments);};pttp.getAnimationType=function(){return this.callMethod("getAnimationType",arguments);};pttp.setAnimationType=function(){return this.callMethod("setAnimationType",arguments);};pttp.getUseBlur=function(){return this.callMethod("getUseBlur",arguments);};pttp.setUseBlur=function(){return this.callMethod("setUseBlur",arguments);};pttp.showPage=function(){return this.callMethod("showPage",arguments);};pttp.showNextPage=function(){return this.callMethod("showNextPage",arguments);};pttp.showPreviousPage=function(){return this.callMethod("showPreviousPage",arguments);};pttp.getPageIndex=function(){return this.callMethod("getPageIndex",arguments);};pttp.getNumPages=function(){return this.callMethod("getNumPages",arguments);};pttp.getCenterContent=function(){return this.callMethod("getCenterContent",arguments);};pttp.setCenterContent=function(){return this.callMethod("setCenterContent",arguments);};pttp.getColumnCount=function(){return this.callMethod("getColumnCount",arguments);};pttp.getRowCount=function(){return this.callMethod("getRowCount",arguments);};BCComponentModules["TitleLabel"]=TitleLabelAPI;function TitleLabelAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=TitleLabelAPI.prototype=new UIObjectAPI();pttp.setText=function(){return this.callMethod("setText",arguments);};pttp.getText=function(){return this.callMethod("getText",arguments);};pttp.setFont=function(){return this.callMethod("setFont",arguments);};pttp.getFont=function(){return this.callMethod("getFont",arguments);};pttp.setTextSize=function(){return this.callMethod("setTextSize",arguments);};pttp.getTextSize=function(){return this.callMethod("getTextSize",arguments);};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments);};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments);};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments);};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments);};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments);};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments);};pttp.setTruncate=function(){return this.callMethod("setTruncate",arguments);};pttp.getTruncate=function(){return this.callMethod("getTruncate",arguments);};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments);};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments);};pttp.getIsTruncated=function(){return this.callMethod("getIsTruncated",arguments);};pttp.getTextWidth=function(){return this.callMethod("getTextWidth",arguments);};pttp.getSelected=function(){return this.callMethod("getSelected",arguments);};pttp.setSelected=function(){return this.callMethod("setSelected",arguments);};BCComponentModules["ToggleButton"]=ToggleButtonAPI;function ToggleButtonAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ToggleButtonAPI.prototype=new ButtonAPI();pttp.getToggledLabel=function(){return this.callMethod("getToggledLabel",arguments);};pttp.setToggledLabel=function(){return this.callMethod("setToggledLabel",arguments);};pttp.getToggledTooltip=function(){return this.callMethod("getToggledTooltip",arguments);};pttp.setToggledTooltip=function(){return this.callMethod("setToggledTooltip",arguments);};pttp.getToggledIconName=function(){return this.callMethod("getToggledIconName",arguments);};pttp.setToggledIconName=function(){return this.callMethod("setToggledIconName",arguments);};pttp.getIsToggled=function(){return this.callMethod("getIsToggled",arguments);};pttp.setIsToggled=function(){return this.callMethod("setIsToggled",arguments);};BCComponentModules["ViewStack"]=ViewStackAPI;function ViewStackAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=ViewStackAPI.prototype=new LayoutBoxAPI();pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments);};pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments);};pttp.getSelectedItemID=function(){return this.callMethod("getSelectedItemID",arguments);};pttp.setSelectedItemID=function(){return this.callMethod("setSelectedItemID",arguments);};BCComponentModules["VolumeControl"]=VolumeControlAPI;function VolumeControlAPI(pExperience,pCallback,pElementID){this.experience=pExperience;this.callback=pCallback;this.elementID=pElementID;}
var pttp=VolumeControlAPI.prototype=new UIObjectAPI();pttp.getShowBack=function(){return this.callMethod("getShowBack",arguments);};pttp.setShowBack=function(){return this.callMethod("setShowBack",arguments);};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments);};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments);};pttp.getIconScale=function(){return this.callMethod("getIconScale",arguments);};pttp.setIconScale=function(){return this.callMethod("setIconScale",arguments);};pttp.getIconOffsetX=function(){return this.callMethod("getIconOffsetX",arguments);};pttp.setIconOffsetX=function(){return this.callMethod("setIconOffsetX",arguments);};pttp.getIconOffsetY=function(){return this.callMethod("getIconOffsetY",arguments);};pttp.setIconOffsetY=function(){return this.callMethod("setIconOffsetY",arguments);};pttp.getIconAlignmentH=function(){return this.callMethod("getIconAlignmentH",arguments);};pttp.setIconAlignmentH=function(){return this.callMethod("setIconAlignmentH",arguments);};pttp.getIconAlignmentV=function(){return this.callMethod("getIconAlignmentV",arguments);};pttp.setIconAlignmentV=function(){return this.callMethod("setIconAlignmentV",arguments);};pttp.getIconName=function(){return this.callMethod("getIconName",arguments);};pttp.setIconName=function(){return this.callMethod("setIconName",arguments);};pttp.getMutedTooltip=function(){return this.callMethod("getMutedTooltip",arguments);};pttp.setMutedTooltip=function(){return this.callMethod("setMutedTooltip",arguments);};pttp.getMutedIconName=function(){return this.callMethod("getMutedIconName",arguments);};pttp.setMutedIconName=function(){return this.callMethod("setMutedIconName",arguments);};pttp.getIsToggled=function(){return this.callMethod("getIsToggled",arguments);};pttp.setIsToggled=function(){return this.callMethod("setIsToggled",arguments);};pttp.getSliderHeight=function(){return this.callMethod("getSliderHeight",arguments);};pttp.setSliderHeight=function(){return this.callMethod("setSliderHeight",arguments);};pttp.getPopupHeight=function(){return this.callMethod("getPopupHeight",arguments);};pttp.setPopupHeight=function(){return this.callMethod("setPopupHeight",arguments);};pttp.getHorizontalPadding=function(){return this.callMethod("getHorizontalPadding",arguments);};pttp.setHorizontalPadding=function(){return this.callMethod("setHorizontalPadding",arguments);};pttp.getVerticalPadding=function(){return this.callMethod("getVerticalPadding",arguments);};pttp.setVerticalPadding=function(){return this.callMethod("setVerticalPadding",arguments);};pttp.getDirection=function(){return this.callMethod("getDirection",arguments);};pttp.setDirection=function(){return this.callMethod("setDirection",arguments);};pttp.getAnimated=function(){return this.callMethod("getAnimated",arguments);};pttp.setAnimated=function(){return this.callMethod("setAnimated",arguments);};
var BCMAPI = new function () {
	this.token = "";
	this.callback = "BCMAPI.flush";
	this.url = "http://api.brightcove.com/services/library";
	this.request = this.url;
	this.calls = [
		{ "command" : "find_all_videos", "def" : false },
		{ "command" : "find_video_by_id", "def" : "video_id" },
		{ "command" : "find_video_by_id_unfiltered", "def" : "video_id" },
		{ "command" : "find_videos_by_ids", "def" : "video_ids" },
		{ "command" : "find_videos_by_ids_unfiltered", "def" : "video_ids" },
		{ "command" : "find_video_by_reference_id", "def" : "reference_id" },
		{ "command" : "find_video_by_reference_id_unfiltered", "def" : "reference_id" },
		{ "command" : "find_videos_by_reference_ids", "def" : "reference_ids" },
		{ "command" : "find_videos_by_reference_ids_unfiltered", "def" : "reference_ids" },
		{ "command" : "find_videos_by_campaign_id", "def" : "campaign_id" },
		{ "command" : "find_videos_by_tags", "def" : "or_tags" },
		{ "command" : "find_videos_by_text", "def" : "text" },
		{ "command" : "find_videos_by_user_id", "def" : "user_id" },
		{ "command" : "find_modified_videos", "def" : "from_date" },
		{ "command" : "find_related_videos", "def" : "video_id" },
		{ "command" : "find_all_playlists", "def" : false },
		{ "command" : "find_playlist_by_id", "def" : "playlist_id" },
		{ "command" : "find_playlists_by_ids", "def" : "playlist_ids" },
		{ "command" : "find_playlist_by_reference_id", "def" : "reference_id" },
		{ "command" : "find_playlists_by_reference_ids", "def" : "reference_ids" },
		{ "command" : "find_playlists_for_player_id", "def" : "player_id" },
		{ "command" : "search_videos", "def" : "all" }
	];
	this.inject = function (pQuery) {
		var pElement = document.createElement("script");
		this.request = this.url + "?" + pQuery;
		pElement.setAttribute("src", this.request);
		pElement.setAttribute("type", "text/javascript");
		document.getElementsByTagName("head")[0].appendChild(pElement);
		return true;
	};
	this.find = function (pCommand, pParams) {
		pCommand = pCommand.toLowerCase().replace(/(find_)|(_)|(get_)/g, "");
		pParams = pParams || null;
		var pDefault = null;
		var pQuery = "";
		for (var pCall in this.calls) {
			if (typeof this.calls[pCall].command == "undefined") {
				continue;
			}
			if (pCommand == this.calls[pCall].command.toLowerCase().replace(/(find_)|(_)|(get_)/g, "")) {
				pCommand = this.calls[pCall].command;
				if (typeof this.calls[pCall].def != "undefined") {
					pDefault = this.calls[pCall].def;
				}
				break;
			}
		}
		pQuery = "command=" + pCommand;
		if ((typeof pParams == "object") && pParams) {
			for (var pParam in pParams) {
  			if (pParam == "any" || pParam == "all" || pParam == "none") {
    			if (this.isArray(pParams[pParam])) {
      			for (var idx in pParams[pParam]) {
        			pQuery += "&" + pParam + "=" + encodeURIComponent(pParams[pParam][idx]);
      			}
    			} else {
            pQuery += "&" + pParam + "=" + encodeURIComponent(pParams[pParam]);
          }
  			}
				if (pParam == "selector" && pParam !== "all") {
    					pQuery += "&" + pDefault + "=" + encodeURIComponent(pParams[pParam]);
    				} else {
    					pQuery += "&" + pParam + "=" + encodeURIComponent(pParams[pParam]);
    				}
			}
			if (typeof pParams.callback != "string") {
				pQuery += "&callback=" + this.callback;
			}
			if (typeof pParams.token != "string") {
				pQuery += "&token=" + this.token;
			}
		} else if (pParams) {
			pQuery += "&" + pDefault + "=" + encodeURIComponent(pParams) + "&callback=" + this.callback;
			pQuery += "&token=" + this.token;
		} else {
			pQuery += "&token=" + this.token;
			pQuery += "&callback=" + this.callback;
		}
		this.inject(pQuery);
		return true;
	};
	this.search = function (pParams) {
		return this.find("search_videos", pParams);
	};
	 this.isArray = function(o) {
	   return Object.prototype.toString.call(o) === '[object Array]';
	 }
	this.flush = function (pData) {
		return true;
	};
}();
(function(window,undefined){var document=window.document,navigator=window.navigator,location=window.location;
var jQuery=(function(){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery)
},_jQuery=window.jQuery,_$=window.$,rootjQuery,quickExpr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,rnotwhite=/\S/,trimLeft=/^\s+/,trimRight=/\s+$/,rdigit=/\d/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rvalidchars=/^[\],:{}\s]*$/,rvalidescape=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rvalidtokens=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rwebkit=/(webkit)[ \/]([\w.]+)/,ropera=/(opera)(?:.*version)?[ \/]([\w.]+)/,rmsie=/(msie) ([\w.]+)/,rmozilla=/(mozilla)(?:.*? rv:([\w.]+))?/,rdashAlpha=/-([a-z]|[0-9])/ig,rmsPrefix=/^-ms-/,fcamelCase=function(all,letter){return(letter+"").toUpperCase()
},userAgent=navigator.userAgent,browserMatch,readyList,DOMContentLoaded,toString=Object.prototype.toString,hasOwn=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,trim=String.prototype.trim,indexOf=Array.prototype.indexOf,class2type={};
jQuery.fn=jQuery.prototype={constructor:jQuery,init:function(selector,context,rootjQuery){var match,elem,ret,doc;
if(!selector){return this
}if(selector.nodeType){this.context=this[0]=selector;
this.length=1;
return this
}if(selector==="body"&&!context&&document.body){this.context=document;
this[0]=document.body;
this.selector=selector;
this.length=1;
return this
}if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){match=[null,selector,null]
}else{match=quickExpr.exec(selector)
}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;
doc=(context?context.ownerDocument||context:document);
ret=rsingleTag.exec(selector);
if(ret){if(jQuery.isPlainObject(context)){selector=[document.createElement(ret[1])];
jQuery.fn.attr.call(selector,context,true)
}else{selector=[doc.createElement(ret[1])]
}}else{ret=jQuery.buildFragment([match[1]],[doc]);
selector=(ret.cacheable?jQuery.clone(ret.fragment):ret.fragment).childNodes
}return jQuery.merge(this,selector)
}else{elem=document.getElementById(match[2]);
if(elem&&elem.parentNode){if(elem.id!==match[2]){return rootjQuery.find(selector)
}this.length=1;
this[0]=elem
}this.context=document;
this.selector=selector;
return this
}}else{if(!context||context.jquery){return(context||rootjQuery).find(selector)
}else{return this.constructor(context).find(selector)
}}}else{if(jQuery.isFunction(selector)){return rootjQuery.ready(selector)
}}if(selector.selector!==undefined){this.selector=selector.selector;
this.context=selector.context
}return jQuery.makeArray(selector,this)
},selector:"",jquery:"1.7",length:0,size:function(){return this.length
},toArray:function(){return slice.call(this,0)
},get:function(num){return num==null?this.toArray():(num<0?this[this.length+num]:this[num])
},pushStack:function(elems,name,selector){var ret=this.constructor();
if(jQuery.isArray(elems)){push.apply(ret,elems)
}else{jQuery.merge(ret,elems)
}ret.prevObject=this;
ret.context=this.context;
if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")"
}}return ret
},each:function(callback,args){return jQuery.each(this,callback,args)
},ready:function(fn){jQuery.bindReady();
readyList.add(fn);
return this
},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)
},first:function(){return this.eq(0)
},last:function(){return this.eq(-1)
},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","))
},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)
}))
},end:function(){return this.prevObject||this.constructor(null)
},push:push,sort:[].sort,splice:[].splice};
jQuery.fn.init.prototype=jQuery.fn;
jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;
if(typeof target==="boolean"){deep=target;
target=arguments[1]||{};
i=2
}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={}
}if(length===i){target=this;
--i
}for(;
i<length;
i++){if((options=arguments[i])!=null){for(name in options){src=target[name];
copy=options[name];
if(target===copy){continue
}if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;
clone=src&&jQuery.isArray(src)?src:[]
}else{clone=src&&jQuery.isPlainObject(src)?src:{}
}target[name]=jQuery.extend(deep,clone,copy)
}else{if(copy!==undefined){target[name]=copy
}}}}}return target
};
jQuery.extend({noConflict:function(deep){if(window.$===jQuery){window.$=_$
}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery
}return jQuery
},isReady:false,readyWait:1,holdReady:function(hold){if(hold){jQuery.readyWait++
}else{jQuery.ready(true)
}},ready:function(wait){if((wait===true&&!--jQuery.readyWait)||(wait!==true&&!jQuery.isReady)){if(!document.body){return setTimeout(jQuery.ready,1)
}jQuery.isReady=true;
if(wait!==true&&--jQuery.readyWait>0){return
}readyList.fireWith(document,[jQuery]);
if(jQuery.fn.trigger){jQuery(document).trigger("ready").unbind("ready")
}}},bindReady:function(){if(readyList){return
}readyList=jQuery.Callbacks("once memory");
if(document.readyState==="complete"){return setTimeout(jQuery.ready,1)
}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);
window.addEventListener("load",jQuery.ready,false)
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);
window.attachEvent("onload",jQuery.ready);
var toplevel=false;
try{toplevel=window.frameElement==null
}catch(e){}if(document.documentElement.doScroll&&toplevel){doScrollCheck()
}}}},isFunction:function(obj){return jQuery.type(obj)==="function"
},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array"
},isWindow:function(obj){return obj&&typeof obj==="object"&&"setInterval" in obj
},isNumeric:function(obj){return obj!=null&&rdigit.test(obj)&&!isNaN(obj)
},type:function(obj){return obj==null?String(obj):class2type[toString.call(obj)]||"object"
},isPlainObject:function(obj){if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false
}try{if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false
}}catch(e){return false
}var key;
for(key in obj){}return key===undefined||hasOwn.call(obj,key)
},isEmptyObject:function(obj){for(var name in obj){return false
}return true
},error:function(msg){throw msg
},parseJSON:function(data){if(typeof data!=="string"||!data){return null
}data=jQuery.trim(data);
if(window.JSON&&window.JSON.parse){return window.JSON.parse(data)
}if(rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))){return(new Function("return "+data))()
}jQuery.error("Invalid JSON: "+data)
},parseXML:function(data){var xml,tmp;
try{if(window.DOMParser){tmp=new DOMParser();
xml=tmp.parseFromString(data,"text/xml")
}else{xml=new ActiveXObject("Microsoft.XMLDOM");
xml.async="false";
xml.loadXML(data)
}}catch(e){xml=undefined
}if(!xml||!xml.documentElement||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data)
}return xml
},noop:function(){},globalEval:function(data){if(data&&rnotwhite.test(data)){(window.execScript||function(data){window["eval"].call(window,data)
})(data)
}},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)
},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUpperCase()
},each:function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jQuery.isFunction(object);
if(args){if(isObj){for(name in object){if(callback.apply(object[name],args)===false){break
}}}else{for(;
i<length;
){if(callback.apply(object[i++],args)===false){break
}}}}else{if(isObj){for(name in object){if(callback.call(object[name],name,object[name])===false){break
}}}else{for(;
i<length;
){if(callback.call(object[i],i,object[i++])===false){break
}}}}return object
},trim:trim?function(text){return text==null?"":trim.call(text)
}:function(text){return text==null?"":text.toString().replace(trimLeft,"").replace(trimRight,"")
},makeArray:function(array,results){var ret=results||[];
if(array!=null){var type=jQuery.type(array);
if(array.length==null||type==="string"||type==="function"||type==="regexp"||jQuery.isWindow(array)){push.call(ret,array)
}else{jQuery.merge(ret,array)
}}return ret
},inArray:function(elem,array,i){var len;
if(array){if(indexOf){return indexOf.call(array,elem,i)
}len=array.length;
i=i?i<0?Math.max(0,len+i):i:0;
for(;
i<len;
i++){if(i in array&&array[i]===elem){return i
}}}return -1
},merge:function(first,second){var i=first.length,j=0;
if(typeof second.length==="number"){for(var l=second.length;
j<l;
j++){first[i++]=second[j]
}}else{while(second[j]!==undefined){first[i++]=second[j++]
}}first.length=i;
return first
},grep:function(elems,callback,inv){var ret=[],retVal;
inv=!!inv;
for(var i=0,length=elems.length;
i<length;
i++){retVal=!!callback(elems[i],i);
if(inv!==retVal){ret.push(elems[i])
}}return ret
},map:function(elems,callback,arg){var value,key,ret=[],i=0,length=elems.length,isArray=elems instanceof jQuery||length!==undefined&&typeof length==="number"&&((length>0&&elems[0]&&elems[length-1])||length===0||jQuery.isArray(elems));
if(isArray){for(;
i<length;
i++){value=callback(elems[i],i,arg);
if(value!=null){ret[ret.length]=value
}}}else{for(key in elems){value=callback(elems[key],key,arg);
if(value!=null){ret[ret.length]=value
}}}return ret.concat.apply([],ret)
},guid:1,proxy:function(fn,context){if(typeof context==="string"){var tmp=fn[context];
context=fn;
fn=tmp
}if(!jQuery.isFunction(fn)){return undefined
}var args=slice.call(arguments,2),proxy=function(){return fn.apply(context,args.concat(slice.call(arguments)))
};
proxy.guid=fn.guid=fn.guid||proxy.guid||jQuery.guid++;
return proxy
},access:function(elems,key,value,exec,fn,pass){var length=elems.length;
if(typeof key==="object"){for(var k in key){jQuery.access(elems,k,key[k],exec,fn,value)
}return elems
}if(value!==undefined){exec=!pass&&exec&&jQuery.isFunction(value);
for(var i=0;
i<length;
i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):value,pass)
}return elems
}return length?fn(elems[0],key):undefined
},now:function(){return(new Date()).getTime()
},uaMatch:function(ua){ua=ua.toLowerCase();
var match=rwebkit.exec(ua)||ropera.exec(ua)||rmsie.exec(ua)||ua.indexOf("compatible")<0&&rmozilla.exec(ua)||[];
return{browser:match[1]||"",version:match[2]||"0"}
},sub:function(){function jQuerySub(selector,context){return new jQuerySub.fn.init(selector,context)
}jQuery.extend(true,jQuerySub,this);
jQuerySub.superclass=this;
jQuerySub.fn=jQuerySub.prototype=this();
jQuerySub.fn.constructor=jQuerySub;
jQuerySub.sub=this.sub;
jQuerySub.fn.init=function init(selector,context){if(context&&context instanceof jQuery&&!(context instanceof jQuerySub)){context=jQuerySub(context)
}return jQuery.fn.init.call(this,selector,context,rootjQuerySub)
};
jQuerySub.fn.init.prototype=jQuerySub.fn;
var rootjQuerySub=jQuerySub(document);
return jQuerySub
},browser:{}});
jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()
});
browserMatch=jQuery.uaMatch(userAgent);
if(browserMatch.browser){jQuery.browser[browserMatch.browser]=true;
jQuery.browser.version=browserMatch.version
}if(jQuery.browser.webkit){jQuery.browser.safari=true
}if(rnotwhite.test("\xA0")){trimLeft=/^[\s\xA0]+/;
trimRight=/[\s\xA0]+$/
}rootjQuery=jQuery(document);
if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);
jQuery.ready()
}
}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);
jQuery.ready()
}}
}}function doScrollCheck(){if(jQuery.isReady){return
}try{document.documentElement.doScroll("left")
}catch(e){setTimeout(doScrollCheck,1);
return
}jQuery.ready()
}if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return jQuery
})
}return jQuery
})();
var flagsCache={};
function createFlags(flags){var object=flagsCache[flags]={},i,length;
flags=flags.split(/\s+/);
for(i=0,length=flags.length;
i<length;
i++){object[flags[i]]=true
}return object
}jQuery.Callbacks=function(flags){flags=flags?(flagsCache[flags]||createFlags(flags)):{};
var list=[],stack=[],memory,firing,firingStart,firingLength,firingIndex,add=function(args){var i,length,elem,type,actual;
for(i=0,length=args.length;
i<length;
i++){elem=args[i];
type=jQuery.type(elem);
if(type==="array"){add(elem)
}else{if(type==="function"){if(!flags.unique||!self.has(elem)){list.push(elem)
}}}}},fire=function(context,args){args=args||[];
memory=!flags.memory||[context,args];
firing=true;
firingIndex=firingStart||0;
firingStart=0;
firingLength=list.length;
for(;
list&&firingIndex<firingLength;
firingIndex++){if(list[firingIndex].apply(context,args)===false&&flags.stopOnFalse){memory=true;
break
}}firing=false;
if(list){if(!flags.once){if(stack&&stack.length){memory=stack.shift();
self.fireWith(memory[0],memory[1])
}}else{if(memory===true){self.disable()
}else{list=[]
}}}},self={add:function(){if(list){var length=list.length;
add(arguments);
if(firing){firingLength=list.length
}else{if(memory&&memory!==true){firingStart=length;
fire(memory[0],memory[1])
}}}return this
},remove:function(){if(list){var args=arguments,argIndex=0,argLength=args.length;
for(;
argIndex<argLength;
argIndex++){for(var i=0;
i<list.length;
i++){if(args[argIndex]===list[i]){if(firing){if(i<=firingLength){firingLength--;
if(i<=firingIndex){firingIndex--
}}}list.splice(i--,1);
if(flags.unique){break
}}}}}return this
},has:function(fn){if(list){var i=0,length=list.length;
for(;
i<length;
i++){if(fn===list[i]){return true
}}}return false
},empty:function(){list=[];
return this
},disable:function(){list=stack=memory=undefined;
return this
},disabled:function(){return !list
},lock:function(){stack=undefined;
if(!memory||memory===true){self.disable()
}return this
},locked:function(){return !stack
},fireWith:function(context,args){if(stack){if(firing){if(!flags.once){stack.push([context,args])
}}else{if(!(flags.once&&memory)){fire(context,args)
}}}return this
},fire:function(){self.fireWith(this,arguments);
return this
},fired:function(){return !!memory
}};
return self
};
var sliceDeferred=[].slice;
jQuery.extend({Deferred:function(func){var doneList=jQuery.Callbacks("once memory"),failList=jQuery.Callbacks("once memory"),progressList=jQuery.Callbacks("memory"),state="pending",lists={resolve:doneList,reject:failList,notify:progressList},promise={done:doneList.add,fail:failList.add,progress:progressList.add,state:function(){return state
},isResolved:doneList.fired,isRejected:failList.fired,then:function(doneCallbacks,failCallbacks,progressCallbacks){deferred.done(doneCallbacks).fail(failCallbacks).progress(progressCallbacks);
return this
},always:function(){return deferred.done.apply(deferred,arguments).fail.apply(deferred,arguments)
},pipe:function(fnDone,fnFail,fnProgress){return jQuery.Deferred(function(newDefer){jQuery.each({done:[fnDone,"resolve"],fail:[fnFail,"reject"],progress:[fnProgress,"notify"]},function(handler,data){var fn=data[0],action=data[1],returned;
if(jQuery.isFunction(fn)){deferred[handler](function(){returned=fn.apply(this,arguments);
if(returned&&jQuery.isFunction(returned.promise)){returned.promise().then(newDefer.resolve,newDefer.reject,newDefer.notify)
}else{newDefer[action+"With"](this===deferred?newDefer:this,[returned])
}})
}else{deferred[handler](newDefer[action])
}})
}).promise()
},promise:function(obj){if(obj==null){obj=promise
}else{for(var key in promise){obj[key]=promise[key]
}}return obj
}},deferred=promise.promise({}),key;
for(key in lists){deferred[key]=lists[key].fire;
deferred[key+"With"]=lists[key].fireWith
}deferred.done(function(){state="resolved"
},failList.disable,progressList.lock).fail(function(){state="rejected"
},doneList.disable,progressList.lock);
if(func){func.call(deferred,deferred)
}return deferred
},when:function(firstParam){var args=sliceDeferred.call(arguments,0),i=0,length=args.length,pValues=new Array(length),count=length,pCount=length,deferred=length<=1&&firstParam&&jQuery.isFunction(firstParam.promise)?firstParam:jQuery.Deferred(),promise=deferred.promise();
function resolveFunc(i){return function(value){args[i]=arguments.length>1?sliceDeferred.call(arguments,0):value;
if(!(--count)){deferred.resolveWith(deferred,args)
}}
}function progressFunc(i){return function(value){pValues[i]=arguments.length>1?sliceDeferred.call(arguments,0):value;
deferred.notifyWith(promise,pValues)
}
}if(length>1){for(;
i<length;
i++){if(args[i]&&args[i].promise&&jQuery.isFunction(args[i].promise)){args[i].promise().then(resolveFunc(i),deferred.reject,progressFunc(i))
}else{--count
}}if(!count){deferred.resolveWith(deferred,args)
}}else{if(deferred!==firstParam){deferred.resolveWith(deferred,length?[firstParam]:[])
}}return promise
}});
jQuery.support=(function(){var div=document.createElement("div"),documentElement=document.documentElement,all,a,select,opt,input,marginDiv,support,fragment,body,testElementParent,testElement,testElementStyle,tds,events,eventName,i,isSupported;
div.setAttribute("className","t");
div.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";
all=div.getElementsByTagName("*");
a=div.getElementsByTagName("a")[0];
if(!all||!all.length||!a){return{}
}select=document.createElement("select");
opt=select.appendChild(document.createElement("option"));
input=div.getElementsByTagName("input")[0];
support={leadingWhitespace:(div.firstChild.nodeType===3),tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),hrefNormalized:(a.getAttribute("href")==="/a"),opacity:/^0.55/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,unknownElems:!!div.getElementsByTagName("nav").length,checkOn:(input.value==="on"),optSelected:opt.selected,getSetAttribute:div.className!=="t",enctype:!!document.createElement("form").enctype,submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};
input.checked=true;
support.noCloneChecked=input.cloneNode(true).checked;
select.disabled=true;
support.optDisabled=!opt.disabled;
try{delete div.test
}catch(e){support.deleteExpando=false
}if(!div.addEventListener&&div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){support.noCloneEvent=false
});
div.cloneNode(true).fireEvent("onclick")
}input=document.createElement("input");
input.value="t";
input.setAttribute("type","radio");
support.radioValue=input.value==="t";
input.setAttribute("checked","checked");
div.appendChild(input);
fragment=document.createDocumentFragment();
fragment.appendChild(div.lastChild);
support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;
div.innerHTML="";
div.style.width=div.style.paddingLeft="1px";
body=document.getElementsByTagName("body")[0];
testElement=document.createElement(body?"div":"body");
testElementStyle={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};
if(body){jQuery.extend(testElementStyle,{position:"absolute",left:"-999px",top:"-999px"})
}for(i in testElementStyle){testElement.style[i]=testElementStyle[i]
}testElement.appendChild(div);
testElementParent=body||documentElement;
testElementParent.insertBefore(testElement,testElementParent.firstChild);
support.appendChecked=input.checked;
support.boxModel=div.offsetWidth===2;
if("zoom" in div.style){div.style.display="inline";
div.style.zoom=1;
support.inlineBlockNeedsLayout=(div.offsetWidth===2);
div.style.display="";
div.innerHTML="<div style='width:4px;'></div>";
support.shrinkWrapBlocks=(div.offsetWidth!==2)
}div.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
tds=div.getElementsByTagName("td");
isSupported=(tds[0].offsetHeight===0);
tds[0].style.display="";
tds[1].style.display="none";
support.reliableHiddenOffsets=isSupported&&(tds[0].offsetHeight===0);
div.innerHTML="";
if(document.defaultView&&document.defaultView.getComputedStyle){marginDiv=document.createElement("div");
marginDiv.style.width="0";
marginDiv.style.marginRight="0";
div.appendChild(marginDiv);
support.reliableMarginRight=(parseInt((document.defaultView.getComputedStyle(marginDiv,null)||{marginRight:0}).marginRight,10)||0)===0
}if(div.attachEvent){for(i in {submit:1,change:1,focusin:1}){eventName="on"+i;
isSupported=(eventName in div);
if(!isSupported){div.setAttribute(eventName,"return;");
isSupported=(typeof div[eventName]==="function")
}support[i+"Bubbles"]=isSupported
}}jQuery(function(){var container,outer,inner,table,td,offsetSupport,conMarginTop=1,ptlm="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",vb="visibility:hidden;border:0;",style="style='"+ptlm+"border:5px solid #000;padding:0;'",html="<div "+style+"><div></div></div><table "+style+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
body=document.getElementsByTagName("body")[0];
if(!body){return
}container=document.createElement("div");
container.style.cssText=vb+"width:0;height:0;position:static;top:0;margin-top:"+conMarginTop+"px";
body.insertBefore(container,body.firstChild);
testElement=document.createElement("div");
testElement.style.cssText=ptlm+vb;
testElement.innerHTML=html;
container.appendChild(testElement);
outer=testElement.firstChild;
inner=outer.firstChild;
td=outer.nextSibling.firstChild.firstChild;
offsetSupport={doesNotAddBorder:(inner.offsetTop!==5),doesAddBorderForTableAndCells:(td.offsetTop===5)};
inner.style.position="fixed";
inner.style.top="20px";
offsetSupport.fixedPosition=(inner.offsetTop===20||inner.offsetTop===15);
inner.style.position=inner.style.top="";
outer.style.overflow="hidden";
outer.style.position="relative";
offsetSupport.subtractsBorderForOverflowNotVisible=(inner.offsetTop===-5);
offsetSupport.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==conMarginTop);
body.removeChild(container);
testElement=container=null;
jQuery.extend(support,offsetSupport)
});
testElement.innerHTML="";
testElementParent.removeChild(testElement);
testElement=fragment=select=opt=body=marginDiv=div=input=null;
return support
})();
jQuery.boxModel=jQuery.support.boxModel;
var rbrace=/^(?:\{.*\}|\[.*\])$/,rmultiDash=/([A-Z])/g;
jQuery.extend({cache:{},uuid:0,expando:"jQuery"+(jQuery.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];
return !!elem&&!isEmptyDataObject(elem)
},data:function(elem,name,data,pvt){if(!jQuery.acceptData(elem)){return
}var privateCache,thisCache,ret,internalKey=jQuery.expando,getByName=typeof name==="string",isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:elem[jQuery.expando]&&jQuery.expando,isEvents=name==="events";
if((!id||!cache[id]||(!isEvents&&!pvt&&!cache[id].data))&&getByName&&data===undefined){return
}if(!id){if(isNode){elem[jQuery.expando]=id=++jQuery.uuid
}else{id=jQuery.expando
}}if(!cache[id]){cache[id]={};
if(!isNode){cache[id].toJSON=jQuery.noop
}}if(typeof name==="object"||typeof name==="function"){if(pvt){cache[id]=jQuery.extend(cache[id],name)
}else{cache[id].data=jQuery.extend(cache[id].data,name)
}}privateCache=thisCache=cache[id];
if(!pvt){if(!thisCache.data){thisCache.data={}
}thisCache=thisCache.data
}if(data!==undefined){thisCache[jQuery.camelCase(name)]=data
}if(isEvents&&!thisCache[name]){return privateCache.events
}if(getByName){ret=thisCache[name];
if(ret==null){ret=thisCache[jQuery.camelCase(name)]
}}else{ret=thisCache
}return ret
},removeData:function(elem,name,pvt){if(!jQuery.acceptData(elem)){return
}var thisCache,i,l,internalKey=jQuery.expando,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;
if(!cache[id]){return
}if(name){thisCache=pvt?cache[id]:cache[id].data;
if(thisCache){if(jQuery.isArray(name)){name=name
}else{if(name in thisCache){name=[name]
}else{name=jQuery.camelCase(name);
if(name in thisCache){name=[name]
}else{name=name.split(" ")
}}}for(i=0,l=name.length;
i<l;
i++){delete thisCache[name[i]]
}if(!(pvt?isEmptyDataObject:jQuery.isEmptyObject)(thisCache)){return
}}}if(!pvt){delete cache[id].data;
if(!isEmptyDataObject(cache[id])){return
}}if(jQuery.support.deleteExpando||!cache.setInterval){delete cache[id]
}else{cache[id]=null
}if(isNode){if(jQuery.support.deleteExpando){delete elem[jQuery.expando]
}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando)
}else{elem[jQuery.expando]=null
}}}},_data:function(elem,name,data){return jQuery.data(elem,name,data,true)
},acceptData:function(elem){if(elem.nodeName){var match=jQuery.noData[elem.nodeName.toLowerCase()];
if(match){return !(match===true||elem.getAttribute("classid")!==match)
}}return true
}});
jQuery.fn.extend({data:function(key,value){var parts,attr,name,data=null;
if(typeof key==="undefined"){if(this.length){data=jQuery.data(this[0]);
if(this[0].nodeType===1&&!jQuery._data(this[0],"parsedAttrs")){attr=this[0].attributes;
for(var i=0,l=attr.length;
i<l;
i++){name=attr[i].name;
if(name.indexOf("data-")===0){name=jQuery.camelCase(name.substring(5));
dataAttr(this[0],name,data[name])
}}jQuery._data(this[0],"parsedAttrs",true)
}}return data
}else{if(typeof key==="object"){return this.each(function(){jQuery.data(this,key)
})
}}parts=key.split(".");
parts[1]=parts[1]?"."+parts[1]:"";
if(value===undefined){data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);
if(data===undefined&&this.length){data=jQuery.data(this[0],key);
data=dataAttr(this[0],key,data)
}return data===undefined&&parts[1]?this.data(parts[0]):data
}else{return this.each(function(){var $this=jQuery(this),args=[parts[0],value];
$this.triggerHandler("setData"+parts[1]+"!",args);
jQuery.data(this,key,value);
$this.triggerHandler("changeData"+parts[1]+"!",args)
})
}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)
})
}});
function dataAttr(elem,key,data){if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();
data=elem.getAttribute(name);
if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:jQuery.isNumeric(data)?parseFloat(data):rbrace.test(data)?jQuery.parseJSON(data):data
}catch(e){}jQuery.data(elem,key,data)
}else{data=undefined
}}return data
}function isEmptyDataObject(obj){for(var name in obj){if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue
}if(name!=="toJSON"){return false
}}return true
}function handleQueueMarkDefer(elem,type,src){var deferDataKey=type+"defer",queueDataKey=type+"queue",markDataKey=type+"mark",defer=jQuery._data(elem,deferDataKey);
if(defer&&(src==="queue"||!jQuery._data(elem,queueDataKey))&&(src==="mark"||!jQuery._data(elem,markDataKey))){setTimeout(function(){if(!jQuery._data(elem,queueDataKey)&&!jQuery._data(elem,markDataKey)){jQuery.removeData(elem,deferDataKey,true);
defer.fire()
}},0)
}}jQuery.extend({_mark:function(elem,type){if(elem){type=(type||"fx")+"mark";
jQuery._data(elem,type,(jQuery._data(elem,type)||0)+1)
}},_unmark:function(force,elem,type){if(force!==true){type=elem;
elem=force;
force=false
}if(elem){type=type||"fx";
var key=type+"mark",count=force?0:((jQuery._data(elem,key)||1)-1);
if(count){jQuery._data(elem,key,count)
}else{jQuery.removeData(elem,key,true);
handleQueueMarkDefer(elem,type,"mark")
}}},queue:function(elem,type,data){var q;
if(elem){type=(type||"fx")+"queue";
q=jQuery._data(elem,type);
if(data){if(!q||jQuery.isArray(data)){q=jQuery._data(elem,type,jQuery.makeArray(data))
}else{q.push(data)
}}return q||[]
}},dequeue:function(elem,type){type=type||"fx";
var queue=jQuery.queue(elem,type),fn=queue.shift(),hooks={};
if(fn==="inprogress"){fn=queue.shift()
}if(fn){if(type==="fx"){queue.unshift("inprogress")
}jQuery._data(elem,type+".run",hooks);
fn.call(elem,function(){jQuery.dequeue(elem,type)
},hooks)
}if(!queue.length){jQuery.removeData(elem,type+"queue "+type+".run",true);
handleQueueMarkDefer(elem,type,"queue")
}}});
jQuery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;
type="fx"
}if(data===undefined){return jQuery.queue(this[0],type)
}return this.each(function(){var queue=jQuery.queue(this,type,data);
if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type)
}})
},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)
})
},delay:function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;
type=type||"fx";
return this.queue(type,function(next,hooks){var timeout=setTimeout(next,time);
hooks.stop=function(){clearTimeout(timeout)
}
})
},clearQueue:function(type){return this.queue(type||"fx",[])
},promise:function(type,object){if(typeof type!=="string"){object=type;
type=undefined
}type=type||"fx";
var defer=jQuery.Deferred(),elements=this,i=elements.length,count=1,deferDataKey=type+"defer",queueDataKey=type+"queue",markDataKey=type+"mark",tmp;
function resolve(){if(!(--count)){defer.resolveWith(elements,[elements])
}}while(i--){if((tmp=jQuery.data(elements[i],deferDataKey,undefined,true)||(jQuery.data(elements[i],queueDataKey,undefined,true)||jQuery.data(elements[i],markDataKey,undefined,true))&&jQuery.data(elements[i],deferDataKey,jQuery.Callbacks("once memory"),true))){count++;
tmp.add(resolve)
}}resolve();
return defer.promise()
}});
var rclass=/[\n\t\r]/g,rspace=/\s+/,rreturn=/\r/g,rtype=/^(?:button|input)$/i,rfocusable=/^(?:button|input|object|select|textarea)$/i,rclickable=/^a(?:rea)?$/i,rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,getSetAttribute=jQuery.support.getSetAttribute,nodeHook,boolHook,fixSpecified;
jQuery.fn.extend({attr:function(name,value){return jQuery.access(this,name,value,true,jQuery.attr)
},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)
})
},prop:function(name,value){return jQuery.access(this,name,value,true,jQuery.prop)
},removeProp:function(name){name=jQuery.propFix[name]||name;
return this.each(function(){try{this[name]=undefined;
delete this[name]
}catch(e){}})
},addClass:function(value){var classNames,i,l,elem,setClass,c,cl;
if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className))
})
}if(value&&typeof value==="string"){classNames=value.split(rspace);
for(i=0,l=this.length;
i<l;
i++){elem=this[i];
if(elem.nodeType===1){if(!elem.className&&classNames.length===1){elem.className=value
}else{setClass=" "+elem.className+" ";
for(c=0,cl=classNames.length;
c<cl;
c++){if(!~setClass.indexOf(" "+classNames[c]+" ")){setClass+=classNames[c]+" "
}}elem.className=jQuery.trim(setClass)
}}}}return this
},removeClass:function(value){var classNames,i,l,elem,className,c,cl;
if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className))
})
}if((value&&typeof value==="string")||value===undefined){classNames=(value||"").split(rspace);
for(i=0,l=this.length;
i<l;
i++){elem=this[i];
if(elem.nodeType===1&&elem.className){if(value){className=(" "+elem.className+" ").replace(rclass," ");
for(c=0,cl=classNames.length;
c<cl;
c++){className=className.replace(" "+classNames[c]+" "," ")
}elem.className=jQuery.trim(className)
}else{elem.className=""
}}}}return this
},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";
if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal)
})
}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(rspace);
while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);
self[state?"addClass":"removeClass"](className)
}}else{if(type==="undefined"||type==="boolean"){if(this.className){jQuery._data(this,"__className__",this.className)
}this.className=this.className||value===false?"":jQuery._data(this,"__className__")||""
}}})
},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;
for(;
i<l;
i++){if(this[i].nodeType===1&&(" "+this[i].className+" ").replace(rclass," ").indexOf(className)>-1){return true
}}return false
},val:function(value){var hooks,ret,isFunction,elem=this[0];
if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.nodeName.toLowerCase()]||jQuery.valHooks[elem.type];
if(hooks&&"get" in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret
}ret=elem.value;
return typeof ret==="string"?ret.replace(rreturn,""):ret==null?"":ret
}return undefined
}isFunction=jQuery.isFunction(value);
return this.each(function(i){var self=jQuery(this),val;
if(this.nodeType!==1){return
}if(isFunction){val=value.call(this,i,self.val())
}else{val=value
}if(val==null){val=""
}else{if(typeof val==="number"){val+=""
}else{if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+""
})
}}}hooks=jQuery.valHooks[this.nodeName.toLowerCase()]||jQuery.valHooks[this.type];
if(!hooks||!("set" in hooks)||hooks.set(this,val,"value")===undefined){this.value=val
}})
}});
jQuery.extend({valHooks:{option:{get:function(elem){var val=elem.attributes.value;
return !val||val.specified?elem.value:elem.text
}},select:{get:function(elem){var value,i,max,option,index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==="select-one";
if(index<0){return null
}i=one?index:0;
max=one?index+1:options.length;
for(;
i<max;
i++){option=options[i];
if(option.selected&&(jQuery.support.optDisabled?!option.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disabled||!jQuery.nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val();
if(one){return value
}values.push(value)
}}if(one&&!values.length&&options.length){return jQuery(options[index]).val()
}return values
},set:function(elem,value){var values=jQuery.makeArray(value);
jQuery(elem).find("option").each(function(){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0
});
if(!values.length){elem.selectedIndex=-1
}return values
}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(elem,name,value,pass){var ret,hooks,notxml,nType=elem.nodeType;
if(!elem||nType===3||nType===8||nType===2){return undefined
}if(pass&&name in jQuery.attrFn){return jQuery(elem)[name](value)
}if(!("getAttribute" in elem)){return jQuery.prop(elem,name,value)
}notxml=nType!==1||!jQuery.isXMLDoc(elem);
if(notxml){name=name.toLowerCase();
hooks=jQuery.attrHooks[name]||(rboolean.test(name)?boolHook:nodeHook)
}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);
return undefined
}else{if(hooks&&"set" in hooks&&notxml&&(ret=hooks.set(elem,value,name))!==undefined){return ret
}else{elem.setAttribute(name,""+value);
return value
}}}else{if(hooks&&"get" in hooks&&notxml&&(ret=hooks.get(elem,name))!==null){return ret
}else{ret=elem.getAttribute(name);
return ret===null?undefined:ret
}}},removeAttr:function(elem,value){var propName,attrNames,name,l,i=0;
if(elem.nodeType===1){attrNames=(value||"").split(rspace);
l=attrNames.length;
for(;
i<l;
i++){name=attrNames[i].toLowerCase();
propName=jQuery.propFix[name]||name;
jQuery.attr(elem,name,"");
elem.removeAttribute(getSetAttribute?name:propName);
if(rboolean.test(name)&&propName in elem){elem[propName]=false
}}}},attrHooks:{type:{set:function(elem,value){if(rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed")
}else{if(!jQuery.support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"input")){var val=elem.value;
elem.setAttribute("type",value);
if(val){elem.value=val
}return value
}}}},value:{get:function(elem,name){if(nodeHook&&jQuery.nodeName(elem,"button")){return nodeHook.get(elem,name)
}return name in elem?elem.value:null
},set:function(elem,value,name){if(nodeHook&&jQuery.nodeName(elem,"button")){return nodeHook.set(elem,value,name)
}elem.value=value
}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(elem,name,value){var ret,hooks,notxml,nType=elem.nodeType;
if(!elem||nType===3||nType===8||nType===2){return undefined
}notxml=nType!==1||!jQuery.isXMLDoc(elem);
if(notxml){name=jQuery.propFix[name]||name;
hooks=jQuery.propHooks[name]
}if(value!==undefined){if(hooks&&"set" in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret
}else{return(elem[name]=value)
}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,name))!==null){return ret
}else{return elem[name]
}}},propHooks:{tabIndex:{get:function(elem){var attributeNode=elem.getAttributeNode("tabindex");
return attributeNode&&attributeNode.specified?parseInt(attributeNode.value,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined
}}}});
jQuery.attrHooks.tabindex=jQuery.propHooks.tabIndex;
boolHook={get:function(elem,name){var attrNode,property=jQuery.prop(elem,name);
return property===true||typeof property!=="boolean"&&(attrNode=elem.getAttributeNode(name))&&attrNode.nodeValue!==false?name.toLowerCase():undefined
},set:function(elem,value,name){var propName;
if(value===false){jQuery.removeAttr(elem,name)
}else{propName=jQuery.propFix[name]||name;
if(propName in elem){elem[propName]=true
}elem.setAttribute(name,name.toLowerCase())
}return name
}};
if(!getSetAttribute){fixSpecified={name:true,id:true};
nodeHook=jQuery.valHooks.button={get:function(elem,name){var ret;
ret=elem.getAttributeNode(name);
return ret&&(fixSpecified[name]?ret.nodeValue!=="":ret.specified)?ret.nodeValue:undefined
},set:function(elem,value,name){var ret=elem.getAttributeNode(name);
if(!ret){ret=document.createAttribute(name);
elem.setAttributeNode(ret)
}return(ret.nodeValue=value+"")
}};
jQuery.attrHooks.tabindex.set=nodeHook.set;
jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{set:function(elem,value){if(value===""){elem.setAttribute(name,"auto");
return value
}}})
});
jQuery.attrHooks.contenteditable={get:nodeHook.get,set:function(elem,value,name){if(value===""){value="false"
}nodeHook.set(elem,value,name)
}}
}if(!jQuery.support.hrefNormalized){jQuery.each(["href","src","width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{get:function(elem){var ret=elem.getAttribute(name,2);
return ret===null?undefined:ret
}})
})
}if(!jQuery.support.style){jQuery.attrHooks.style={get:function(elem){return elem.style.cssText.toLowerCase()||undefined
},set:function(elem,value){return(elem.style.cssText=""+value)
}}
}if(!jQuery.support.optSelected){jQuery.propHooks.selected=jQuery.extend(jQuery.propHooks.selected,{get:function(elem){var parent=elem.parentNode;
if(parent){parent.selectedIndex;
if(parent.parentNode){parent.parentNode.selectedIndex
}}return null
}})
}if(!jQuery.support.enctype){jQuery.propFix.enctype="encoding"
}if(!jQuery.support.checkOn){jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={get:function(elem){return elem.getAttribute("value")===null?"on":elem.value
}}
})
}jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]=jQuery.extend(jQuery.valHooks[this],{set:function(elem,value){if(jQuery.isArray(value)){return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>=0)
}}})
});
var rnamespaces=/\.(.*)$/,rformElems=/^(?:textarea|input|select)$/i,rperiod=/\./g,rspaces=/ /g,rescape=/[^\w\s.|`]/g,rtypenamespace=/^([^\.]*)?(?:\.(.+))?$/,rhoverHack=/\bhover(\.\S+)?/,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rquickIs=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,quickParse=function(selector){var quick=rquickIs.exec(selector);
if(quick){quick[1]=(quick[1]||"").toLowerCase();
quick[3]=quick[3]&&new RegExp("(?:^|\\s)"+quick[3]+"(?:\\s|$)")
}return quick
},quickIs=function(elem,m){return((!m[1]||elem.nodeName.toLowerCase()===m[1])&&(!m[2]||elem.id===m[2])&&(!m[3]||m[3].test(elem.className)))
},hoverHack=function(events){return jQuery.event.special.hover?events:events.replace(rhoverHack,"mouseenter$1 mouseleave$1")
};
jQuery.event={add:function(elem,types,handler,data,selector){var elemData,eventHandle,events,t,tns,type,namespaces,handleObj,handleObjIn,quick,handlers,special;
if(elem.nodeType===3||elem.nodeType===8||!types||!handler||!(elemData=jQuery._data(elem))){return
}if(handler.handler){handleObjIn=handler;
handler=handleObjIn.handler
}if(!handler.guid){handler.guid=jQuery.guid++
}events=elemData.events;
if(!events){elemData.events=events={}
}eventHandle=elemData.handle;
if(!eventHandle){elemData.handle=eventHandle=function(e){return typeof jQuery!=="undefined"&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply(eventHandle.elem,arguments):undefined
};
eventHandle.elem=elem
}types=hoverHack(types).split(" ");
for(t=0;
t<types.length;
t++){tns=rtypenamespace.exec(types[t])||[];
type=tns[1];
namespaces=(tns[2]||"").split(".").sort();
special=jQuery.event.special[type]||{};
type=(selector?special.delegateType:special.bindType)||type;
special=jQuery.event.special[type]||{};
handleObj=jQuery.extend({type:type,origType:tns[1],data:data,handler:handler,guid:handler.guid,selector:selector,namespace:namespaces.join(".")},handleObjIn);
if(selector){handleObj.quick=quickParse(selector);
if(!handleObj.quick&&jQuery.expr.match.POS.test(selector)){handleObj.isPositional=true
}}handlers=events[type];
if(!handlers){handlers=events[type]=[];
handlers.delegateCount=0;
if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false)
}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle)
}}}}if(special.add){special.add.call(elem,handleObj);
if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid
}}if(selector){handlers.splice(handlers.delegateCount++,0,handleObj)
}else{handlers.push(handleObj)
}jQuery.event.global[type]=true
}elem=null
},global:{},remove:function(elem,types,handler,selector){var elemData=jQuery.hasData(elem)&&jQuery._data(elem),t,tns,type,namespaces,origCount,j,events,special,handle,eventType,handleObj;
if(!elemData||!(events=elemData.events)){return
}types=hoverHack(types||"").split(" ");
for(t=0;
t<types.length;
t++){tns=rtypenamespace.exec(types[t])||[];
type=tns[1];
namespaces=tns[2];
if(!type){namespaces=namespaces?"."+namespaces:"";
for(j in events){jQuery.event.remove(elem,j+namespaces,handler,selector)
}return
}special=jQuery.event.special[type]||{};
type=(selector?special.delegateType:special.bindType)||type;
eventType=events[type]||[];
origCount=eventType.length;
namespaces=namespaces?new RegExp("(^|\\.)"+namespaces.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;
if(handler||namespaces||selector||special.remove){for(j=0;
j<eventType.length;
j++){handleObj=eventType[j];
if(!handler||handler.guid===handleObj.guid){if(!namespaces||namespaces.test(handleObj.namespace)){if(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector){eventType.splice(j--,1);
if(handleObj.selector){eventType.delegateCount--
}if(special.remove){special.remove.call(elem,handleObj)
}}}}}}else{eventType.length=0
}if(eventType.length===0&&origCount!==eventType.length){if(!special.teardown||special.teardown.call(elem,namespaces)===false){jQuery.removeEvent(elem,type,elemData.handle)
}delete events[type]
}}if(jQuery.isEmptyObject(events)){handle=elemData.handle;
if(handle){handle.elem=null
}jQuery.removeData(elem,["events","handle"],true)
}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(event,data,elem,onlyHandlers){if(elem&&(elem.nodeType===3||elem.nodeType===8)){return
}var type=event.type||event,namespaces=[],cache,exclusive,i,cur,old,ontype,special,handle,eventPath,bubbleType;
if(type.indexOf("!")>=0){type=type.slice(0,-1);
exclusive=true
}if(type.indexOf(".")>=0){namespaces=type.split(".");
type=namespaces.shift();
namespaces.sort()
}if((!elem||jQuery.event.customEvent[type])&&!jQuery.event.global[type]){return
}event=typeof event==="object"?event[jQuery.expando]?event:new jQuery.Event(type,event):new jQuery.Event(type);
event.type=type;
event.isTrigger=true;
event.exclusive=exclusive;
event.namespace=namespaces.join(".");
event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;
ontype=type.indexOf(":")<0?"on"+type:"";
if(onlyHandlers||!elem){event.preventDefault()
}if(!elem){cache=jQuery.cache;
for(i in cache){if(cache[i].events&&cache[i].events[type]){jQuery.event.trigger(event,data,cache[i].handle.elem,true)
}}return
}event.result=undefined;
if(!event.target){event.target=elem
}data=data!=null?jQuery.makeArray(data):[];
data.unshift(event);
special=jQuery.event.special[type]||{};
if(special.trigger&&special.trigger.apply(elem,data)===false){return
}eventPath=[[elem,special.bindType||type]];
if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;
old=null;
for(cur=elem.parentNode;
cur;
cur=cur.parentNode){eventPath.push([cur,bubbleType]);
old=cur
}if(old&&old===elem.ownerDocument){eventPath.push([old.defaultView||old.parentWindow||window,bubbleType])
}}for(i=0;
i<eventPath.length;
i++){cur=eventPath[i][0];
event.type=eventPath[i][1];
handle=(jQuery._data(cur,"events")||{})[event.type]&&jQuery._data(cur,"handle");
if(handle){handle.apply(cur,data)
}handle=ontype&&cur[ontype];
if(handle&&jQuery.acceptData(cur)){handle.apply(cur,data)
}if(event.isPropagationStopped()){break
}}event.type=type;
if(!event.isDefaultPrevented()){if((!special._default||special._default.apply(elem.ownerDocument,data)===false)&&!(type==="click"&&jQuery.nodeName(elem,"a"))&&jQuery.acceptData(elem)){if(ontype&&elem[type]&&((type!=="focus"&&type!=="blur")||event.target.offsetWidth!==0)&&!jQuery.isWindow(elem)){old=elem[ontype];
if(old){elem[ontype]=null
}jQuery.event.triggered=type;
elem[type]();
jQuery.event.triggered=undefined;
if(old){elem[ontype]=old
}}}}return event.result
},dispatch:function(event){event=jQuery.event.fix(event||window.event);
var handlers=((jQuery._data(this,"events")||{})[event.type]||[]),delegateCount=handlers.delegateCount,args=[].slice.call(arguments,0),run_all=!event.exclusive&&!event.namespace,specialHandle=(jQuery.event.special[event.type]||{}).handle,handlerQueue=[],i,j,cur,ret,selMatch,matched,matches,handleObj,sel,hit,related;
args[0]=event;
event.delegateTarget=this;
if(delegateCount&&!event.target.disabled&&!(event.button&&event.type==="click")){for(cur=event.target;
cur!=this;
cur=cur.parentNode||this){selMatch={};
matches=[];
for(i=0;
i<delegateCount;
i++){handleObj=handlers[i];
sel=handleObj.selector;
hit=selMatch[sel];
if(handleObj.isPositional){hit=(hit||(selMatch[sel]=jQuery(sel))).index(cur)>=0
}else{if(hit===undefined){hit=selMatch[sel]=(handleObj.quick?quickIs(cur,handleObj.quick):jQuery(cur).is(sel))
}}if(hit){matches.push(handleObj)
}}if(matches.length){handlerQueue.push({elem:cur,matches:matches})
}}}if(handlers.length>delegateCount){handlerQueue.push({elem:this,matches:handlers.slice(delegateCount)})
}for(i=0;
i<handlerQueue.length&&!event.isPropagationStopped();
i++){matched=handlerQueue[i];
event.currentTarget=matched.elem;
for(j=0;
j<matched.matches.length&&!event.isImmediatePropagationStopped();
j++){handleObj=matched.matches[j];
if(run_all||(!event.namespace&&!handleObj.namespace)||event.namespace_re&&event.namespace_re.test(handleObj.namespace)){event.data=handleObj.data;
event.handleObj=handleObj;
ret=(specialHandle||handleObj.handler).apply(matched.elem,args);
if(ret!==undefined){event.result=ret;
if(ret===false){event.preventDefault();
event.stopPropagation()
}}}}}return event.result
},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(event,original){if(event.which==null){event.which=original.charCode!=null?original.charCode:original.keyCode
}return event
}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(event,original){var eventDoc,doc,body,button=original.button,fromElement=original.fromElement;
if(event.pageX==null&&original.clientX!=null){eventDoc=event.target.ownerDocument||document;
doc=eventDoc.documentElement;
body=eventDoc.body;
event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);
event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)
}if(!event.relatedTarget&&fromElement){event.relatedTarget=fromElement===event.target?original.toElement:fromElement
}if(!event.which&&button!==undefined){event.which=(button&1?1:(button&2?3:(button&4?2:0)))
}return event
}},fix:function(event){if(event[jQuery.expando]){return event
}var i,prop,originalEvent=event,fixHook=jQuery.event.fixHooks[event.type]||{},copy=fixHook.props?this.props.concat(fixHook.props):this.props;
event=jQuery.Event(originalEvent);
for(i=copy.length;
i;
){prop=copy[--i];
event[prop]=originalEvent[prop]
}if(!event.target){event.target=originalEvent.srcElement||document
}if(event.target.nodeType===3){event.target=event.target.parentNode
}if(event.metaKey===undefined){event.metaKey=event.ctrlKey
}return fixHook.filter?fixHook.filter(event,originalEvent):event
},special:{ready:{setup:jQuery.bindReady},focus:{delegateType:"focusin",noBubble:true},blur:{delegateType:"focusout",noBubble:true},beforeunload:{setup:function(data,namespaces,eventHandle){if(jQuery.isWindow(this)){this.onbeforeunload=eventHandle
}},teardown:function(namespaces,eventHandle){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null
}}}},simulate:function(type,elem,event,bubble){var e=jQuery.extend(new jQuery.Event(),event,{type:type,isSimulated:true,originalEvent:{}});
if(bubble){jQuery.event.trigger(e,null,elem)
}else{jQuery.event.dispatch.call(elem,e)
}if(e.isDefaultPrevented()){event.preventDefault()
}}};
jQuery.event.handle=jQuery.event.dispatch;
jQuery.removeEvent=document.removeEventListener?function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false)
}}:function(elem,type,handle){if(elem.detachEvent){elem.detachEvent("on"+type,handle)
}};
jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props)
}if(src&&src.type){this.originalEvent=src;
this.type=src.type;
this.isDefaultPrevented=(src.defaultPrevented||src.returnValue===false||src.getPreventDefault&&src.getPreventDefault())?returnTrue:returnFalse
}else{this.type=src
}if(props){jQuery.extend(this,props)
}this.timeStamp=src&&src.timeStamp||jQuery.now();
this[jQuery.expando]=true
};
function returnFalse(){return false
}function returnTrue(){return true
}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;
var e=this.originalEvent;
if(!e){return
}if(e.preventDefault){e.preventDefault()
}else{e.returnValue=false
}},stopPropagation:function(){this.isPropagationStopped=returnTrue;
var e=this.originalEvent;
if(!e){return
}if(e.stopPropagation){e.stopPropagation()
}e.cancelBubble=true
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;
this.stopPropagation()
},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};
jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]=jQuery.event.special[fix]={delegateType:fix,bindType:fix,handle:function(event){var target=this,related=event.relatedTarget,handleObj=event.handleObj,selector=handleObj.selector,oldType,ret;
if(!related||handleObj.origType===event.type||(related!==target&&!jQuery.contains(target,related))){oldType=event.type;
event.type=handleObj.origType;
ret=handleObj.handler.apply(this,arguments);
event.type=oldType
}return ret
}}
});
if(!jQuery.support.submitBubbles){jQuery.event.special.submit={setup:function(){if(jQuery.nodeName(this,"form")){return false
}jQuery.event.add(this,"click._submit keypress._submit",function(e){var elem=e.target,form=jQuery.nodeName(elem,"input")||jQuery.nodeName(elem,"button")?elem.form:undefined;
if(form&&!form._submit_attached){jQuery.event.add(form,"submit._submit",function(event){if(this.parentNode){jQuery.event.simulate("submit",this.parentNode,event,true)
}});
form._submit_attached=true
}})
},teardown:function(){if(jQuery.nodeName(this,"form")){return false
}jQuery.event.remove(this,"._submit")
}}
}if(!jQuery.support.changeBubbles){jQuery.event.special.change={setup:function(){if(rformElems.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){jQuery.event.add(this,"propertychange._change",function(event){if(event.originalEvent.propertyName==="checked"){this._just_changed=true
}});
jQuery.event.add(this,"click._change",function(event){if(this._just_changed){this._just_changed=false;
jQuery.event.simulate("change",this,event,true)
}})
}return false
}jQuery.event.add(this,"beforeactivate._change",function(e){var elem=e.target;
if(rformElems.test(elem.nodeName)&&!elem._change_attached){jQuery.event.add(elem,"change._change",function(event){if(this.parentNode&&!event.isSimulated){jQuery.event.simulate("change",this.parentNode,event,true)
}});
elem._change_attached=true
}})
},handle:function(event){var elem=event.target;
if(this!==elem||event.isSimulated||event.isTrigger||(elem.type!=="radio"&&elem.type!=="checkbox")){return event.handleObj.handler.apply(this,arguments)
}},teardown:function(){jQuery.event.remove(this,"._change");
return rformElems.test(this.nodeName)
}}
}if(!jQuery.support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){var attaches=0,handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true)
};
jQuery.event.special[fix]={setup:function(){if(attaches++===0){document.addEventListener(orig,handler,true)
}},teardown:function(){if(--attaches===0){document.removeEventListener(orig,handler,true)
}}}
})
}jQuery.fn.extend({on:function(types,selector,data,fn,one){var origFn,type;
if(typeof types==="object"){if(typeof selector!=="string"){data=selector;
selector=undefined
}for(type in types){this.on(type,selector,data,types[type],one)
}return this
}if(data==null&&fn==null){fn=selector;
data=selector=undefined
}else{if(fn==null){if(typeof selector==="string"){fn=data;
data=undefined
}else{fn=data;
data=selector;
selector=undefined
}}}if(fn===false){fn=returnFalse
}else{if(!fn){return this
}}if(one===1){origFn=fn;
fn=function(event){jQuery().off(event);
return origFn.apply(this,arguments)
};
fn.guid=origFn.guid||(origFn.guid=jQuery.guid++)
}return this.each(function(){jQuery.event.add(this,types,fn,data,selector)
})
},one:function(types,selector,data,fn){return this.on.call(this,types,selector,data,fn,1)
},off:function(types,selector,fn){if(types&&types.preventDefault&&types.handleObj){var handleObj=types.handleObj;
jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.type+"."+handleObj.namespace:handleObj.type,handleObj.selector,handleObj.handler);
return this
}if(typeof types==="object"){for(var type in types){this.off(type,selector,types[type])
}return this
}if(selector===false||typeof selector==="function"){fn=selector;
selector=undefined
}if(fn===false){fn=returnFalse
}return this.each(function(){jQuery.event.remove(this,types,fn,selector)
})
},bind:function(types,data,fn){return this.on(types,null,data,fn)
},unbind:function(types,fn){return this.off(types,null,fn)
},live:function(types,data,fn){jQuery(this.context).on(types,this.selector,data,fn);
return this
},die:function(types,fn){jQuery(this.context).off(types,this.selector||"**",fn);
return this
},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)
},undelegate:function(selector,types,fn){return arguments.length==1?this.off(selector,"**"):this.off(types,selector,fn)
},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)
})
},triggerHandler:function(type,data){if(this[0]){return jQuery.event.trigger(type,data,this[0],true)
}},toggle:function(fn){var args=arguments,guid=fn.guid||jQuery.guid++,i=0,toggler=function(event){var lastToggle=(jQuery._data(this,"lastToggle"+fn.guid)||0)%i;
jQuery._data(this,"lastToggle"+fn.guid,lastToggle+1);
event.preventDefault();
return args[lastToggle].apply(this,arguments)||false
};
toggler.guid=guid;
while(i<args.length){args[i++].guid=guid
}return this.click(toggler)
},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)
}});
jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(i,name){jQuery.fn[name]=function(data,fn){if(fn==null){fn=data;
data=null
}return arguments.length>0?this.bind(name,data,fn):this.trigger(name)
};
if(jQuery.attrFn){jQuery.attrFn[name]=true
}if(rkeyEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.keyHooks
}if(rmouseEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.mouseHooks
}});
(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,expando="sizcache"+(Math.random()+"").replace(".",""),done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true,rBackslash=/\\/g,rReturn=/\r\n/g,rNonWord=/\W/;
[0,0].sort(function(){baseHasDuplicate=false;
return 0
});
var Sizzle=function(selector,context,results,seed){results=results||[];
context=context||document;
var origContext=context;
if(context.nodeType!==1&&context.nodeType!==9){return[]
}if(!selector||typeof selector!=="string"){return results
}var m,set,checkSet,extra,ret,cur,pop,i,prune=true,contextXML=Sizzle.isXML(context),parts=[],soFar=selector;
do{chunker.exec("");
m=chunker.exec(soFar);
if(m){soFar=m[3];
parts.push(m[1]);
if(m[2]){extra=m[3];
break
}}}while(m);
if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context,seed)
}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);
while(parts.length){selector=parts.shift();
if(Expr.relative[selector]){selector+=parts.shift()
}set=posProcess(selector,set,seed)
}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){ret=Sizzle.find(parts.shift(),context,contextXML);
context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]
}if(context){ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);
set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;
if(parts.length>0){checkSet=makeArray(set)
}else{prune=false
}while(parts.length){cur=parts.pop();
pop=cur;
if(!Expr.relative[cur]){cur=""
}else{pop=parts.pop()
}if(pop==null){pop=context
}Expr.relative[cur](checkSet,pop,contextXML)
}}else{checkSet=parts=[]
}}if(!checkSet){checkSet=set
}if(!checkSet){Sizzle.error(cur||selector)
}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)
}else{if(context&&context.nodeType===1){for(i=0;
checkSet[i]!=null;
i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&Sizzle.contains(context,checkSet[i]))){results.push(set[i])
}}}else{for(i=0;
checkSet[i]!=null;
i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])
}}}}}else{makeArray(checkSet,results)
}if(extra){Sizzle(extra,origContext,results,seed);
Sizzle.uniqueSort(results)
}return results
};
Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;
results.sort(sortOrder);
if(hasDuplicate){for(var i=1;
i<results.length;
i++){if(results[i]===results[i-1]){results.splice(i--,1)
}}}}return results
};
Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)
};
Sizzle.matchesSelector=function(node,expr){return Sizzle(expr,null,null,[node]).length>0
};
Sizzle.find=function(expr,context,isXML){var set,i,len,match,type,left;
if(!expr){return[]
}for(i=0,len=Expr.order.length;
i<len;
i++){type=Expr.order[i];
if((match=Expr.leftMatch[type].exec(expr))){left=match[1];
match.splice(1,1);
if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(rBackslash,"");
set=Expr.find[type](match,context,isXML);
if(set!=null){expr=expr.replace(Expr.match[type],"");
break
}}}}if(!set){set=typeof context.getElementsByTagName!=="undefined"?context.getElementsByTagName("*"):[]
}return{set:set,expr:expr}
};
Sizzle.filter=function(expr,set,inplace,not){var match,anyFound,type,found,item,filter,left,i,pass,old=expr,result=[],curLoop=set,isXMLFilter=set&&set[0]&&Sizzle.isXML(set[0]);
while(expr&&set.length){for(type in Expr.filter){if((match=Expr.leftMatch[type].exec(expr))!=null&&match[2]){filter=Expr.filter[type];
left=match[1];
anyFound=false;
match.splice(1,1);
if(left.substr(left.length-1)==="\\"){continue
}if(curLoop===result){result=[]
}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);
if(!match){anyFound=found=true
}else{if(match===true){continue
}}}if(match){for(i=0;
(item=curLoop[i])!=null;
i++){if(item){found=filter(item,match,i,curLoop);
pass=not^found;
if(inplace&&found!=null){if(pass){anyFound=true
}else{curLoop[i]=false
}}else{if(pass){result.push(item);
anyFound=true
}}}}}if(found!==undefined){if(!inplace){curLoop=result
}expr=expr.replace(Expr.match[type],"");
if(!anyFound){return[]
}break
}}}if(expr===old){if(anyFound==null){Sizzle.error(expr)
}else{break
}}old=expr
}return curLoop
};
Sizzle.error=function(msg){throw"Syntax error, unrecognized expression: "+msg
};
var getText=Sizzle.getText=function(elem){var i,node,nodeType=elem.nodeType,ret="";
if(nodeType){if(nodeType===1){if(typeof elem.textContent==="string"){return elem.textContent
}else{if(typeof elem.innerText==="string"){return elem.innerText.replace(rReturn,"")
}else{for(elem=elem.firstChild;
elem;
elem=elem.nextSibling){ret+=getText(elem)
}}}}else{if(nodeType===3||nodeType===4){return elem.nodeValue
}}}else{for(i=0;
(node=elem[i]);
i++){if(node.nodeType!==8){ret+=getText(node)
}}}return ret
};
var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")
},type:function(elem){return elem.getAttribute("type")
}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!rNonWord.test(part),isPartStrNotTag=isPartStr&&!isTag;
if(isTag){part=part.toLowerCase()
}for(var i=0,l=checkSet.length,elem;
i<l;
i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part
}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)
}},">":function(checkSet,part){var elem,isPartStr=typeof part==="string",i=0,l=checkSet.length;
if(isPartStr&&!rNonWord.test(part)){part=part.toLowerCase();
for(;
i<l;
i++){elem=checkSet[i];
if(elem){var parent=elem.parentNode;
checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false
}}}else{for(;
i<l;
i++){elem=checkSet[i];
if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part
}}if(isPartStr){Sizzle.filter(part,checkSet,true)
}}},"":function(checkSet,part,isXML){var nodeCheck,doneName=done++,checkFn=dirCheck;
if(typeof part==="string"&&!rNonWord.test(part)){part=part.toLowerCase();
nodeCheck=part;
checkFn=dirNodeCheck
}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)
},"~":function(checkSet,part,isXML){var nodeCheck,doneName=done++,checkFn=dirCheck;
if(typeof part==="string"&&!rNonWord.test(part)){part=part.toLowerCase();
nodeCheck=part;
checkFn=dirNodeCheck
}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)
}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
return m&&m.parentNode?[m]:[]
}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);
for(var i=0,l=results.length;
i<l;
i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])
}}return ret.length===0?null:ret
}},TAG:function(match,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(match[1])
}}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(rBackslash,"")+" ";
if(isXML){return match
}for(var i=0,elem;
(elem=curLoop[i])!=null;
i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n\r]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)
}}else{if(inplace){curLoop[i]=false
}}}}return false
},ID:function(match){return match[1].replace(rBackslash,"")
},TAG:function(match,curLoop){return match[1].replace(rBackslash,"").toLowerCase()
},CHILD:function(match){if(match[1]==="nth"){if(!match[2]){Sizzle.error(match[0])
}match[2]=match[2].replace(/^\+|\s*/g,"");
var test=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);
match[2]=(test[1]+(test[2]||1))-0;
match[3]=test[3]-0
}else{if(match[2]){Sizzle.error(match[0])
}}match[0]=done++;
return match
},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1]=match[1].replace(rBackslash,"");
if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]
}match[4]=(match[4]||match[5]||"").replace(rBackslash,"");
if(match[2]==="~="){match[4]=" "+match[4]+" "
}return match
},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)
}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);
if(!inplace){result.push.apply(result,ret)
}return false
}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true
}}return match
},POS:function(match){match.unshift(true);
return match
}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"
},disabled:function(elem){return elem.disabled===true
},checked:function(elem){return elem.checked===true
},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedIndex
}return elem.selected===true
},parent:function(elem){return !!elem.firstChild
},empty:function(elem){return !elem.firstChild
},has:function(elem,i,match){return !!Sizzle(match[3],elem).length
},header:function(elem){return(/h\d/i).test(elem.nodeName)
},text:function(elem){var attr=elem.getAttribute("type"),type=elem.type;
return elem.nodeName.toLowerCase()==="input"&&"text"===type&&(attr===type||attr===null)
},radio:function(elem){return elem.nodeName.toLowerCase()==="input"&&"radio"===elem.type
},checkbox:function(elem){return elem.nodeName.toLowerCase()==="input"&&"checkbox"===elem.type
},file:function(elem){return elem.nodeName.toLowerCase()==="input"&&"file"===elem.type
},password:function(elem){return elem.nodeName.toLowerCase()==="input"&&"password"===elem.type
},submit:function(elem){var name=elem.nodeName.toLowerCase();
return(name==="input"||name==="button")&&"submit"===elem.type
},image:function(elem){return elem.nodeName.toLowerCase()==="input"&&"image"===elem.type
},reset:function(elem){var name=elem.nodeName.toLowerCase();
return(name==="input"||name==="button")&&"reset"===elem.type
},button:function(elem){var name=elem.nodeName.toLowerCase();
return name==="input"&&"button"===elem.type||name==="button"
},input:function(elem){return(/input|select|textarea|button/i).test(elem.nodeName)
},focus:function(elem){return elem===elem.ownerDocument.activeElement
}},setFilters:{first:function(elem,i){return i===0
},last:function(elem,i,match,array){return i===array.length-1
},even:function(elem,i){return i%2===0
},odd:function(elem,i){return i%2===1
},lt:function(elem,i,match){return i<match[3]-0
},gt:function(elem,i,match){return i>match[3]-0
},nth:function(elem,i,match){return match[3]-0===i
},eq:function(elem,i,match){return match[3]-0===i
}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];
if(filter){return filter(elem,i,match,array)
}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0
}else{if(name==="not"){var not=match[3];
for(var j=0,l=not.length;
j<l;
j++){if(not[j]===elem){return false
}}return true
}else{Sizzle.error(name)
}}}},CHILD:function(elem,match){var first,last,doneName,parent,cache,count,diff,type=match[1],node=elem;
switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false
}}if(type==="first"){return true
}node=elem;
case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false
}}return true;
case"nth":first=match[2];
last=match[3];
if(first===1&&last===0){return true
}doneName=match[0];
parent=elem.parentNode;
if(parent&&(parent[expando]!==doneName||!elem.nodeIndex)){count=0;
for(node=parent.firstChild;
node;
node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count
}}parent[expando]=doneName
}diff=elem.nodeIndex-last;
if(first===0){return diff===0
}else{return(diff%first===0&&diff/first>=0)
}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match
},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||!!elem.nodeName&&elem.nodeName.toLowerCase()===match
},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1
},ATTR:function(elem,match){var name=match[1],result=Sizzle.attr?Sizzle.attr(elem,name):Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];
return result==null?type==="!=":!type&&Sizzle.attr?result!=null:type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false
},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];
if(filter){return filter(elem,i,match,array)
}}}};
var origPOS=Expr.match.POS,fescape=function(all,num){return"\\"+(num-0+1)
};
for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+(/(?![^\[]*\])(?![^\(]*\))/.source));
Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,fescape))
}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);
if(results){results.push.apply(results,array);
return results
}return array
};
try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType
}catch(e){makeArray=function(array,results){var i=0,ret=results||[];
if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)
}else{if(typeof array.length==="number"){for(var l=array.length;
i<l;
i++){ret.push(array[i])
}}else{for(;
array[i];
i++){ret.push(array[i])
}}}return ret
}
}var sortOrder,siblingCheck;
if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(a===b){hasDuplicate=true;
return 0
}if(!a.compareDocumentPosition||!b.compareDocumentPosition){return a.compareDocumentPosition?-1:1
}return a.compareDocumentPosition(b)&4?-1:1
}
}else{sortOrder=function(a,b){if(a===b){hasDuplicate=true;
return 0
}else{if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex
}}var al,bl,ap=[],bp=[],aup=a.parentNode,bup=b.parentNode,cur=aup;
if(aup===bup){return siblingCheck(a,b)
}else{if(!aup){return -1
}else{if(!bup){return 1
}}}while(cur){ap.unshift(cur);
cur=cur.parentNode
}cur=bup;
while(cur){bp.unshift(cur);
cur=cur.parentNode
}al=ap.length;
bl=bp.length;
for(var i=0;
i<al&&i<bl;
i++){if(ap[i]!==bp[i]){return siblingCheck(ap[i],bp[i])
}}return i===al?siblingCheck(a,bp[i],-1):siblingCheck(ap[i],b,1)
};
siblingCheck=function(a,b,ret){if(a===b){return ret
}var cur=a.nextSibling;
while(cur){if(cur===b){return -1
}cur=cur.nextSibling
}return 1
}
}(function(){var form=document.createElement("div"),id="script"+(new Date()).getTime(),root=document.documentElement;
form.innerHTML="<a name='"+id+"'/>";
root.insertBefore(form,root.firstChild);
if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]
}};
Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");
return elem.nodeType===1&&node&&node.nodeValue===match
}
}root.removeChild(form);
root=form=null
})();
(function(){var div=document.createElement("div");
div.appendChild(document.createComment(""));
if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);
if(match[1]==="*"){var tmp=[];
for(var i=0;
results[i];
i++){if(results[i].nodeType===1){tmp.push(results[i])
}}results=tmp
}return results
}
}div.innerHTML="<a href='#'></a>";
if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)
}
}div=null
})();
if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div"),id="__sizzle__";
div.innerHTML="<p class='TEST'></p>";
if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return
}Sizzle=function(query,context,extra,seed){context=context||document;
if(!seed&&!Sizzle.isXML(context)){var match=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(query);
if(match&&(context.nodeType===1||context.nodeType===9)){if(match[1]){return makeArray(context.getElementsByTagName(query),extra)
}else{if(match[2]&&Expr.find.CLASS&&context.getElementsByClassName){return makeArray(context.getElementsByClassName(match[2]),extra)
}}}if(context.nodeType===9){if(query==="body"&&context.body){return makeArray([context.body],extra)
}else{if(match&&match[3]){var elem=context.getElementById(match[3]);
if(elem&&elem.parentNode){if(elem.id===match[3]){return makeArray([elem],extra)
}}else{return makeArray([],extra)
}}}try{return makeArray(context.querySelectorAll(query),extra)
}catch(qsaError){}}else{if(context.nodeType===1&&context.nodeName.toLowerCase()!=="object"){var oldContext=context,old=context.getAttribute("id"),nid=old||id,hasParent=context.parentNode,relativeHierarchySelector=/^\s*[+~]/.test(query);
if(!old){context.setAttribute("id",nid)
}else{nid=nid.replace(/'/g,"\\$&")
}if(relativeHierarchySelector&&hasParent){context=context.parentNode
}try{if(!relativeHierarchySelector||hasParent){return makeArray(context.querySelectorAll("[id='"+nid+"'] "+query),extra)
}}catch(pseudoError){}finally{if(!old){oldContext.removeAttribute("id")
}}}}}return oldSizzle(query,context,extra,seed)
};
for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]
}div=null
})()
}(function(){var html=document.documentElement,matches=html.matchesSelector||html.mozMatchesSelector||html.webkitMatchesSelector||html.msMatchesSelector;
if(matches){var disconnectedMatch=!matches.call(document.createElement("div"),"div"),pseudoWorks=false;
try{matches.call(document.documentElement,"[test!='']:sizzle")
}catch(pseudoError){pseudoWorks=true
}Sizzle.matchesSelector=function(node,expr){expr=expr.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");
if(!Sizzle.isXML(node)){try{if(pseudoWorks||!Expr.match.PSEUDO.test(expr)&&!/!=/.test(expr)){var ret=matches.call(node,expr);
if(ret||!disconnectedMatch||node.document&&node.document.nodeType!==11){return ret
}}}catch(e){}}return Sizzle(expr,null,null,[node]).length>0
}
}})();
(function(){var div=document.createElement("div");
div.innerHTML="<div class='test e'></div><div class='test'></div>";
if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return
}div.lastChild.className="e";
if(div.getElementsByClassName("e").length===1){return
}Expr.order.splice(1,0,"CLASS");
Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])
}};
div=null
})();
function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;
i<l;
i++){var elem=checkSet[i];
if(elem){var match=false;
elem=elem[dir];
while(elem){if(elem[expando]===doneName){match=checkSet[elem.sizset];
break
}if(elem.nodeType===1&&!isXML){elem[expando]=doneName;
elem.sizset=i
}if(elem.nodeName.toLowerCase()===cur){match=elem;
break
}elem=elem[dir]
}checkSet[i]=match
}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;
i<l;
i++){var elem=checkSet[i];
if(elem){var match=false;
elem=elem[dir];
while(elem){if(elem[expando]===doneName){match=checkSet[elem.sizset];
break
}if(elem.nodeType===1){if(!isXML){elem[expando]=doneName;
elem.sizset=i
}if(typeof cur!=="string"){if(elem===cur){match=true;
break
}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;
break
}}}elem=elem[dir]
}checkSet[i]=match
}}}if(document.documentElement.contains){Sizzle.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)
}
}else{if(document.documentElement.compareDocumentPosition){Sizzle.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)
}
}else{Sizzle.contains=function(){return false
}
}}Sizzle.isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;
return documentElement?documentElement.nodeName!=="HTML":false
};
var posProcess=function(selector,context,seed){var match,tmpSet=[],later="",root=context.nodeType?[context]:context;
while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];
selector=selector.replace(Expr.match.PSEUDO,"")
}selector=Expr.relative[selector]?selector+"*":selector;
for(var i=0,l=root.length;
i<l;
i++){Sizzle(selector,root[i],tmpSet,seed)
}return Sizzle.filter(later,tmpSet)
};
Sizzle.attr=jQuery.attr;
Sizzle.selectors.attrMap={};
jQuery.find=Sizzle;
jQuery.expr=Sizzle.selectors;
jQuery.expr[":"]=jQuery.expr.filters;
jQuery.unique=Sizzle.uniqueSort;
jQuery.text=Sizzle.getText;
jQuery.isXMLDoc=Sizzle.isXML;
jQuery.contains=Sizzle.contains
})();
var runtil=/Until$/,rparentsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,isSimple=/^.[^:#\[\.,]*$/,slice=Array.prototype.slice,POS=jQuery.expr.match.POS,guaranteedUnique={children:true,contents:true,next:true,prev:true};
jQuery.fn.extend({find:function(selector){var self=this,i,l;
if(typeof selector!=="string"){return jQuery(selector).filter(function(){for(i=0,l=self.length;
i<l;
i++){if(jQuery.contains(self[i],this)){return true
}}})
}var ret=this.pushStack("","find",selector),length,n,r;
for(i=0,l=this.length;
i<l;
i++){length=ret.length;
jQuery.find(selector,this[i],ret);
if(i>0){for(n=length;
n<ret.length;
n++){for(r=0;
r<length;
r++){if(ret[r]===ret[n]){ret.splice(n--,1);
break
}}}}}return ret
},has:function(target){var targets=jQuery(target);
return this.filter(function(){for(var i=0,l=targets.length;
i<l;
i++){if(jQuery.contains(this,targets[i])){return true
}}})
},not:function(selector){return this.pushStack(winnow(this,selector,false),"not",selector)
},filter:function(selector){return this.pushStack(winnow(this,selector,true),"filter",selector)
},is:function(selector){return !!selector&&(typeof selector==="string"?POS.test(selector)?jQuery(selector,this.context).index(this[0])>=0:jQuery.filter(selector,this).length>0:this.filter(selector).length>0)
},closest:function(selectors,context){var ret=[],i,l,cur=this[0];
if(jQuery.isArray(selectors)){var level=1;
while(cur&&cur.ownerDocument&&cur!==context){for(i=0;
i<selectors.length;
i++){if(jQuery(cur).is(selectors[i])){ret.push({selector:selectors[i],elem:cur,level:level})
}}cur=cur.parentNode;
level++
}return ret
}var pos=POS.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;
for(i=0,l=this.length;
i<l;
i++){cur=this[i];
while(cur){if(pos?pos.index(cur)>-1:jQuery.find.matchesSelector(cur,selectors)){ret.push(cur);
break
}else{cur=cur.parentNode;
if(!cur||!cur.ownerDocument||cur===context||cur.nodeType===11){break
}}}}ret=ret.length>1?jQuery.unique(ret):ret;
return this.pushStack(ret,"closest",selectors)
},index:function(elem){if(!elem){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1
}if(typeof elem==="string"){return jQuery.inArray(this[0],jQuery(elem))
}return jQuery.inArray(elem.jquery?elem[0]:elem,this)
},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context):jQuery.makeArray(selector&&selector.nodeType?[selector]:selector),all=jQuery.merge(this.get(),set);
return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all))
},andSelf:function(){return this.add(this.prevObject)
}});
function isDisconnected(node){return !node||!node.parentNode||node.parentNode.nodeType===11
}jQuery.each({parent:function(elem){var parent=elem.parentNode;
return parent&&parent.nodeType!==11?parent:null
},parents:function(elem){return jQuery.dir(elem,"parentNode")
},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)
},next:function(elem){return jQuery.nth(elem,2,"nextSibling")
},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")
},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")
},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")
},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until)
},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)
},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)
},children:function(elem){return jQuery.sibling(elem.firstChild)
},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)
}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until),args=slice.call(arguments);
if(!runtil.test(name)){selector=until
}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret)
}ret=this.length>1&&!guaranteedUnique[name]?jQuery.unique(ret):ret;
if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse()
}return this.pushStack(ret,name,args.join(","))
}
});
jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")"
}return elems.length===1?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(expr,elems)
},dir:function(elem,dir,until){var matched=[],cur=elem[dir];
while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur)
}cur=cur[dir]
}return matched
},nth:function(cur,result,dir,elem){result=result||1;
var num=0;
for(;
cur;
cur=cur[dir]){if(cur.nodeType===1&&++num===result){break
}}return cur
},sibling:function(n,elem){var r=[];
for(;
n;
n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n)
}}return r
}});
function winnow(elements,qualifier,keep){qualifier=qualifier||0;
if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){var retVal=!!qualifier.call(elem,i,elem);
return retVal===keep
})
}else{if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep
})
}else{if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1
});
if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep)
}else{qualifier=jQuery.filter(qualifier,filtered)
}}}}return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep
})
}function createSafeFragment(document){var list=nodeNames.split(" "),safeFrag=document.createDocumentFragment();
if(safeFrag.createElement){while(list.length){safeFrag.createElement(list.pop())
}}return safeFrag
}var nodeNames="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",rinlinejQuery=/ jQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style)/i,rnocache=/<(?:script|object|embed|option|style)/i,rnoshimcache=new RegExp("<(?:"+nodeNames.replace(" ","|")+")","i"),rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/\/(java|ecma)script/i,rcleanScript=/^\s*<!(?:\[CDATA\[|\-\-)/,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},safeFragment=createSafeFragment(document);
wrapMap.optgroup=wrapMap.option;
wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;
wrapMap.th=wrapMap.td;
if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"div<div>","</div>"]
}jQuery.fn.extend({text:function(text){if(jQuery.isFunction(text)){return this.each(function(i){var self=jQuery(this);
self.text(text.call(this,i,self.text()))
})
}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))
}return jQuery.text(this)
},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i))
})
}if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);
if(this[0].parentNode){wrap.insertBefore(this[0])
}wrap.map(function(){var elem=this;
while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild
}return elem
}).append(this)
}return this
},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i))
})
}return this.each(function(){var self=jQuery(this),contents=self.contents();
if(contents.length){contents.wrapAll(html)
}else{self.append(html)
}})
},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)
})
},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes)
}}).end()
},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.appendChild(elem)
}})
},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.insertBefore(elem,this.firstChild)
}})
},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this)
})
}else{if(arguments.length){var set=jQuery(arguments[0]);
set.push.apply(set,this.toArray());
return this.pushStack(set,"before",arguments)
}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)
})
}else{if(arguments.length){var set=this.pushStack(this,"after",arguments);
set.push.apply(set,jQuery(arguments[0]).toArray());
return set
}}},remove:function(selector,keepData){for(var i=0,elem;
(elem=this[i])!=null;
i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));
jQuery.cleanData([elem])
}if(elem.parentNode){elem.parentNode.removeChild(elem)
}}}return this
},empty:function(){for(var i=0,elem;
(elem=this[i])!=null;
i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"))
}while(elem.firstChild){elem.removeChild(elem.firstChild)
}}return this
},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;
deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;
return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)
})
},html:function(value){if(value===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(rinlinejQuery,""):null
}else{if(typeof value==="string"&&!rnoInnerhtml.test(value)&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");
try{for(var i=0,l=this.length;
i<l;
i++){if(this[i].nodeType===1){jQuery.cleanData(this[i].getElementsByTagName("*"));
this[i].innerHTML=value
}}}catch(e){this.empty().append(value)
}}else{if(jQuery.isFunction(value)){this.each(function(i){var self=jQuery(this);
self.html(value.call(this,i,self.html()))
})
}else{this.empty().append(value)
}}}return this
},replaceWith:function(value){if(this[0]&&this[0].parentNode){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this),old=self.html();
self.replaceWith(value.call(this,i,old))
})
}if(typeof value!=="string"){value=jQuery(value).detach()
}return this.each(function(){var next=this.nextSibling,parent=this.parentNode;
jQuery(this).remove();
if(next){jQuery(next).before(value)
}else{jQuery(parent).append(value)
}})
}else{return this.length?this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"replaceWith",value):this
}},detach:function(selector){return this.remove(selector,true)
},domManip:function(args,table,callback){var results,first,fragment,parent,value=args[0],scripts=[];
if(!jQuery.support.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback,true)
})
}if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);
args[0]=value.call(this,i,table?self.html():undefined);
self.domManip(args,table,callback)
})
}if(this[0]){parent=value&&value.parentNode;
if(jQuery.support.parentNode&&parent&&parent.nodeType===11&&parent.childNodes.length===this.length){results={fragment:parent}
}else{results=jQuery.buildFragment(args,this,scripts)
}fragment=results.fragment;
if(fragment.childNodes.length===1){first=fragment=fragment.firstChild
}else{first=fragment.firstChild
}if(first){table=table&&jQuery.nodeName(first,"tr");
for(var i=0,l=this.length,lastIndex=l-1;
i<l;
i++){callback.call(table?root(this[i],first):this[i],results.cacheable||(l>1&&i<lastIndex)?jQuery.clone(fragment,true,true):fragment)
}}if(scripts.length){jQuery.each(scripts,evalScript)
}}return this
}});
function root(elem,cur){return jQuery.nodeName(elem,"table")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem
}function cloneCopyEvent(src,dest){if(dest.nodeType!==1||!jQuery.hasData(src)){return
}var type,i,l,oldData=jQuery._data(src),curData=jQuery._data(dest,oldData),events=oldData.events;
if(events){delete curData.handle;
curData.events={};
for(type in events){for(i=0,l=events[type].length;
i<l;
i++){jQuery.event.add(dest,type+(events[type][i].namespace?".":"")+events[type][i].namespace,events[type][i],events[type][i].data)
}}}if(curData.data){curData.data=jQuery.extend({},curData.data)
}}function cloneFixAttributes(src,dest){var nodeName;
if(dest.nodeType!==1){return
}if(dest.clearAttributes){dest.clearAttributes()
}if(dest.mergeAttributes){dest.mergeAttributes(src)
}nodeName=dest.nodeName.toLowerCase();
if(nodeName==="object"){dest.outerHTML=src.outerHTML
}else{if(nodeName==="input"&&(src.type==="checkbox"||src.type==="radio")){if(src.checked){dest.defaultChecked=dest.checked=src.checked
}if(dest.value!==src.value){dest.value=src.value
}}else{if(nodeName==="option"){dest.selected=src.defaultSelected
}else{if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue
}}}}dest.removeAttribute(jQuery.expando)
}jQuery.buildFragment=function(args,nodes,scripts){var fragment,cacheable,cacheresults,doc,first=args[0];
if(nodes&&nodes[0]){doc=nodes[0].ownerDocument||nodes[0]
}if(!doc.createDocumentFragment){doc=document
}if(args.length===1&&typeof first==="string"&&first.length<512&&doc===document&&first.charAt(0)==="<"&&!rnocache.test(first)&&(jQuery.support.checkClone||!rchecked.test(first))&&(!jQuery.support.unknownElems&&rnoshimcache.test(first))){cacheable=true;
cacheresults=jQuery.fragments[first];
if(cacheresults&&cacheresults!==1){fragment=cacheresults
}}if(!fragment){fragment=doc.createDocumentFragment();
jQuery.clean(args,doc,fragment,scripts)
}if(cacheable){jQuery.fragments[first]=cacheresults?fragment:1
}return{fragment:fragment,cacheable:cacheable}
};
jQuery.fragments={};
jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector),parent=this.length===1&&this[0].parentNode;
if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);
return this
}else{for(var i=0,l=insert.length;
i<l;
i++){var elems=(i>0?this.clone(true):this).get();
jQuery(insert[i])[original](elems);
ret=ret.concat(elems)
}return this.pushStack(ret,name,insert.selector)
}}
});
function getAll(elem){if(typeof elem.getElementsByTagName!=="undefined"){return elem.getElementsByTagName("*")
}else{if(typeof elem.querySelectorAll!=="undefined"){return elem.querySelectorAll("*")
}else{return[]
}}}function fixDefaultChecked(elem){if(elem.type==="checkbox"||elem.type==="radio"){elem.defaultChecked=elem.checked
}}function findInputs(elem){var nodeName=(elem.nodeName||"").toLowerCase();
if(nodeName==="input"){fixDefaultChecked(elem)
}else{if(nodeName!=="script"&&typeof elem.getElementsByTagName!=="undefined"){jQuery.grep(elem.getElementsByTagName("input"),fixDefaultChecked)
}}}jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var clone=elem.cloneNode(true),srcElements,destElements,i;
if((!jQuery.support.noCloneEvent||!jQuery.support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){cloneFixAttributes(elem,clone);
srcElements=getAll(elem);
destElements=getAll(clone);
for(i=0;
srcElements[i];
++i){if(destElements[i]){cloneFixAttributes(srcElements[i],destElements[i])
}}}if(dataAndEvents){cloneCopyEvent(elem,clone);
if(deepDataAndEvents){srcElements=getAll(elem);
destElements=getAll(clone);
for(i=0;
srcElements[i];
++i){cloneCopyEvent(srcElements[i],destElements[i])
}}}srcElements=destElements=null;
return clone
},clean:function(elems,context,fragment,scripts){var checkScriptType;
context=context||document;
if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document
}var ret=[],j;
for(var i=0,elem;
(elem=elems[i])!=null;
i++){if(typeof elem==="number"){elem+=""
}if(!elem){continue
}if(typeof elem==="string"){if(!rhtml.test(elem)){elem=context.createTextNode(elem)
}else{elem=elem.replace(rxhtmlTag,"<$1></$2>");
var tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,depth=wrap[0],div=context.createElement("div");
if(context===document){safeFragment.appendChild(div)
}else{createSafeFragment(context).appendChild(div)
}div.innerHTML=wrap[1]+elem+wrap[2];
while(depth--){div=div.lastChild
}if(!jQuery.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.childNodes:[];
for(j=tbody.length-1;
j>=0;
--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])
}}}if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild)
}elem=div.childNodes
}}var len;
if(!jQuery.support.appendChecked){if(elem[0]&&typeof (len=elem.length)==="number"){for(j=0;
j<len;
j++){findInputs(elem[j])
}}else{findInputs(elem)
}}if(elem.nodeType){ret.push(elem)
}else{ret=jQuery.merge(ret,elem)
}}if(fragment){checkScriptType=function(elem){return !elem.type||rscriptType.test(elem.type)
};
for(i=0;
ret[i];
i++){if(scripts&&jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i])
}else{if(ret[i].nodeType===1){var jsTags=jQuery.grep(ret[i].getElementsByTagName("script"),checkScriptType);
ret.splice.apply(ret,[i+1,0].concat(jsTags))
}fragment.appendChild(ret[i])
}}}return ret
},cleanData:function(elems){var data,id,cache=jQuery.cache,special=jQuery.event.special,deleteExpando=jQuery.support.deleteExpando;
for(var i=0,elem;
(elem=elems[i])!=null;
i++){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){continue
}id=elem[jQuery.expando];
if(id){data=cache[id];
if(data&&data.events){for(var type in data.events){if(special[type]){jQuery.event.remove(elem,type)
}else{jQuery.removeEvent(elem,type,data.handle)
}}if(data.handle){data.handle.elem=null
}}if(deleteExpando){delete elem[jQuery.expando]
}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando)
}}delete cache[id]
}}}});
function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})
}else{jQuery.globalEval((elem.text||elem.textContent||elem.innerHTML||"").replace(rcleanScript,"/*$0*/"))
}if(elem.parentNode){elem.parentNode.removeChild(elem)
}}var ralpha=/alpha\([^)]*\)/i,ropacity=/opacity=([^)]*)/,rupper=/([A-Z]|^ms)/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,rrelNum=/^([\-+])=([\-+.\de]+)/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],curCSS,getComputedStyle,currentStyle;
jQuery.fn.css=function(name,value){if(arguments.length===2&&value===undefined){return this
}return jQuery.access(this,name,value,true,function(elem,name,value){return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name)
})
};
jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity","opacity");
return ret===""?"1":ret
}else{return elem.style.opacity
}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":jQuery.support.cssFloat?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return
}var ret,type,origName=jQuery.camelCase(name),style=elem.style,hooks=jQuery.cssHooks[origName];
name=jQuery.cssProps[origName]||origName;
if(value!==undefined){type=typeof value;
if(type==="string"&&(ret=rrelNum.exec(value))){value=(+(ret[1]+1)*+ret[2])+parseFloat(jQuery.css(elem,name));
type="number"
}if(value==null||type==="number"&&isNaN(value)){return
}if(type==="number"&&!jQuery.cssNumber[origName]){value+="px"
}if(!hooks||!("set" in hooks)||(value=hooks.set(elem,value))!==undefined){try{style[name]=value
}catch(e){}}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret
}return style[name]
}},css:function(elem,name,extra){var ret,hooks;
name=jQuery.camelCase(name);
hooks=jQuery.cssHooks[name];
name=jQuery.cssProps[name]||name;
if(name==="cssFloat"){name="float"
}if(hooks&&"get" in hooks&&(ret=hooks.get(elem,true,extra))!==undefined){return ret
}else{if(curCSS){return curCSS(elem,name)
}}},swap:function(elem,options,callback){var old={};
for(var name in options){old[name]=elem.style[name];
elem.style[name]=options[name]
}callback.call(elem);
for(name in options){elem.style[name]=old[name]
}}});
jQuery.curCSS=jQuery.css;
jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){var val;
if(computed){if(elem.offsetWidth!==0){return getWH(elem,name,extra)
}else{jQuery.swap(elem,cssShow,function(){val=getWH(elem,name,extra)
})
}return val
}},set:function(elem,value){if(rnumpx.test(value)){value=parseFloat(value);
if(value>=0){return value+"px"
}}else{return value
}}}
});
if(!jQuery.support.opacity){jQuery.cssHooks.opacity={get:function(elem,computed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":computed?"1":""
},set:function(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&&currentStyle.filter||style.filter||"";
style.zoom=1;
if(value>=1&&jQuery.trim(filter.replace(ralpha,""))===""){style.removeAttribute("filter");
if(currentStyle&&!currentStyle.filter){return
}}style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity
}}
}jQuery(function(){if(!jQuery.support.reliableMarginRight){jQuery.cssHooks.marginRight={get:function(elem,computed){var ret;
jQuery.swap(elem,{display:"inline-block"},function(){if(computed){ret=curCSS(elem,"margin-right","marginRight")
}else{ret=elem.style.marginRight
}});
return ret
}}
}});
if(document.defaultView&&document.defaultView.getComputedStyle){getComputedStyle=function(elem,name){var ret,defaultView,computedStyle;
name=name.replace(rupper,"-$1").toLowerCase();
if(!(defaultView=elem.ownerDocument.defaultView)){return undefined
}if((computedStyle=defaultView.getComputedStyle(elem,null))){ret=computedStyle.getPropertyValue(name);
if(ret===""&&!jQuery.contains(elem.ownerDocument.documentElement,elem)){ret=jQuery.style(elem,name)
}}return ret
}
}if(document.documentElement.currentStyle){currentStyle=function(elem,name){var left,rsLeft,uncomputed,ret=elem.currentStyle&&elem.currentStyle[name],style=elem.style;
if(ret===null&&style&&(uncomputed=style[name])){ret=uncomputed
}if(!rnumpx.test(ret)&&rnum.test(ret)){left=style.left;
rsLeft=elem.runtimeStyle&&elem.runtimeStyle.left;
if(rsLeft){elem.runtimeStyle.left=elem.currentStyle.left
}style.left=name==="fontSize"?"1em":(ret||0);
ret=style.pixelLeft+"px";
style.left=left;
if(rsLeft){elem.runtimeStyle.left=rsLeft
}}return ret===""?"auto":ret
}
}curCSS=getComputedStyle||currentStyle;
function getWH(elem,name,extra){var val=name==="width"?elem.offsetWidth:elem.offsetHeight,which=name==="width"?cssWidth:cssHeight;
if(val>0){if(extra!=="border"){jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.css(elem,"padding"+this))||0
}if(extra==="margin"){val+=parseFloat(jQuery.css(elem,extra+this))||0
}else{val-=parseFloat(jQuery.css(elem,"border"+this+"Width"))||0
}})
}return val+"px"
}val=curCSS(elem,name,name);
if(val<0||val==null){val=elem.style[name]||0
}val=parseFloat(val)||0;
if(extra){jQuery.each(which,function(){val+=parseFloat(jQuery.css(elem,"padding"+this))||0;
if(extra!=="padding"){val+=parseFloat(jQuery.css(elem,"border"+this+"Width"))||0
}if(extra==="margin"){val+=parseFloat(jQuery.css(elem,extra+this))||0
}})
}return val+"px"
}if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight;
return(width===0&&height===0)||(!jQuery.support.reliableHiddenOffsets&&((elem.style&&elem.style.display)||jQuery.css(elem,"display"))==="none")
};
jQuery.expr.filters.visible=function(elem){return !jQuery.expr.filters.hidden(elem)
}
}var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rhash=/#.*$/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,rinput=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,rlocalProtocol=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rquery=/\?/,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,rselectTextarea=/^(?:select|textarea)/i,rspacesAjax=/\s+/,rts=/([?&])_=[^&]*/,rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,_load=jQuery.fn.load,prefilters={},transports={},ajaxLocation,ajaxLocParts,allTypes=["*/"]+["*"];
try{ajaxLocation=location.href
}catch(e){ajaxLocation=document.createElement("a");
ajaxLocation.href="";
ajaxLocation=ajaxLocation.href
}ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];
function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;
dataTypeExpression="*"
}if(jQuery.isFunction(func)){var dataTypes=dataTypeExpression.toLowerCase().split(rspacesAjax),i=0,length=dataTypes.length,dataType,list,placeBefore;
for(;
i<length;
i++){dataType=dataTypes[i];
placeBefore=/^\+/.test(dataType);
if(placeBefore){dataType=dataType.substr(1)||"*"
}list=structure[dataType]=structure[dataType]||[];
list[placeBefore?"unshift":"push"](func)
}}}
}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,dataType,inspected){dataType=dataType||options.dataTypes[0];
inspected=inspected||{};
inspected[dataType]=true;
var list=structure[dataType],i=0,length=list?list.length:0,executeOnly=(structure===prefilters),selection;
for(;
i<length&&(executeOnly||!selection);
i++){selection=list[i](options,originalOptions,jqXHR);
if(typeof selection==="string"){if(!executeOnly||inspected[selection]){selection=undefined
}else{options.dataTypes.unshift(selection);
selection=inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,selection,inspected)
}}}if((executeOnly||!selection)&&!inspected["*"]){selection=inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,"*",inspected)
}return selection
}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};
for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:(deep||(deep={})))[key]=src[key]
}}if(deep){jQuery.extend(true,target,deep)
}}jQuery.fn.extend({load:function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments)
}else{if(!this.length){return this
}}var off=url.indexOf(" ");
if(off>=0){var selector=url.slice(off,url.length);
url=url.slice(0,off)
}var type="GET";
if(params){if(jQuery.isFunction(params)){callback=params;
params=undefined
}else{if(typeof params==="object"){params=jQuery.param(params,jQuery.ajaxSettings.traditional);
type="POST"
}}}var self=this;
jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(jqXHR,status,responseText){responseText=jqXHR.responseText;
if(jqXHR.isResolved()){jqXHR.done(function(r){responseText=r
});
self.html(selector?jQuery("<div>").append(responseText.replace(rscript,"")).find(selector):responseText)
}if(callback){self.each(callback,[responseText,status,jqXHR])
}}});
return this
},serialize:function(){return jQuery.param(this.serializeArray())
},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this
}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type))
}).map(function(i,elem){var val=jQuery(this).val();
return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}
}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}
}).get()
}});
jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)
}
});
jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;
callback=data;
data=undefined
}return jQuery.ajax({type:method,url:url,data:data,success:callback,dataType:type})
}
});
jQuery.extend({getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")
},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")
},ajaxSetup:function(target,settings){if(settings){ajaxExtend(target,jQuery.ajaxSettings)
}else{settings=target;
target=jQuery.ajaxSettings
}ajaxExtend(target,settings);
return target
},ajaxSettings:{url:ajaxLocation,isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":allTypes},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;
url=undefined
}options=options||{};
var s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=callbackContext!==s&&(callbackContext.nodeType||callbackContext instanceof jQuery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},ifModifiedKey,requestHeaders={},requestHeadersNames={},responseHeadersString,responseHeaders,transport,timeoutTimer,parts,state=0,fireGlobals,i,jqXHR={readyState:0,setRequestHeader:function(name,value){if(!state){var lname=name.toLowerCase();
name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;
requestHeaders[name]=value
}return this
},getAllResponseHeaders:function(){return state===2?responseHeadersString:null
},getResponseHeader:function(key){var match;
if(state===2){if(!responseHeaders){responseHeaders={};
while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2]
}}match=responseHeaders[key.toLowerCase()]
}return match===undefined?null:match
},overrideMimeType:function(type){if(!state){s.mimeType=type
}return this
},abort:function(statusText){statusText=statusText||"abort";
if(transport){transport.abort(statusText)
}done(0,statusText);
return this
}};
function done(status,nativeStatusText,responses,headers){if(state===2){return
}state=2;
if(timeoutTimer){clearTimeout(timeoutTimer)
}transport=undefined;
responseHeadersString=headers||"";
jqXHR.readyState=status>0?4:0;
var isSuccess,success,error,statusText=nativeStatusText,response=responses?ajaxHandleResponses(s,jqXHR,responses):undefined,lastModified,etag;
if(status>=200&&status<300||status===304){if(s.ifModified){if((lastModified=jqXHR.getResponseHeader("Last-Modified"))){jQuery.lastModified[ifModifiedKey]=lastModified
}if((etag=jqXHR.getResponseHeader("Etag"))){jQuery.etag[ifModifiedKey]=etag
}}if(status===304){statusText="notmodified";
isSuccess=true
}else{try{success=ajaxConvert(s,response);
statusText="success";
isSuccess=true
}catch(e){statusText="parsererror";
error=e
}}}else{error=statusText;
if(!statusText||status){statusText="error";
if(status<0){status=0
}}}jqXHR.status=status;
jqXHR.statusText=""+(nativeStatusText||statusText);
if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR])
}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error])
}jqXHR.statusCode(statusCode);
statusCode=undefined;
if(fireGlobals){globalEventContext.trigger("ajax"+(isSuccess?"Success":"Error"),[jqXHR,s,isSuccess?success:error])
}completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);
if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);
if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop")
}}}deferred.promise(jqXHR);
jqXHR.success=jqXHR.done;
jqXHR.error=jqXHR.fail;
jqXHR.complete=completeDeferred.add;
jqXHR.statusCode=function(map){if(map){var tmp;
if(state<2){for(tmp in map){statusCode[tmp]=[statusCode[tmp],map[tmp]]
}}else{tmp=map[jqXHR.status];
jqXHR.then(tmp,tmp)
}}return this
};
s.url=((url||s.url)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");
s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().split(rspacesAjax);
if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());
s.crossDomain=!!(parts&&(parts[1]!=ajaxLocParts[1]||parts[2]!=ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?80:443))))
}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional)
}inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);
if(state===2){return false
}fireGlobals=s.global;
s.type=s.type.toUpperCase();
s.hasContent=!rnoContent.test(s.type);
if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart")
}if(!s.hasContent){if(s.data){s.url+=(rquery.test(s.url)?"&":"?")+s.data;
delete s.data
}ifModifiedKey=s.url;
if(s.cache===false){var ts=jQuery.now(),ret=s.url.replace(rts,"$1_="+ts);
s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"")
}}if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType)
}if(s.ifModified){ifModifiedKey=ifModifiedKey||s.url;
if(jQuery.lastModified[ifModifiedKey]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[ifModifiedKey])
}if(jQuery.etag[ifModifiedKey]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[ifModifiedKey])
}}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);
for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i])
}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){jqXHR.abort();
return false
}for(i in {success:1,error:1,complete:1}){jqXHR[i](s[i])
}transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);
if(!transport){done(-1,"No Transport")
}else{jqXHR.readyState=1;
if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s])
}if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")
},s.timeout)
}try{state=1;
transport.send(requestHeaders,done)
}catch(e){if(state<2){done(-1,e)
}else{jQuery.error(e)
}}}return jqXHR
},param:function(a,traditional){var s=[],add=function(key,value){value=jQuery.isFunction(value)?value():value;
s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)
};
if(traditional===undefined){traditional=jQuery.ajaxSettings.traditional
}if(jQuery.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value)
})
}else{for(var prefix in a){buildParams(prefix,a[prefix],traditional,add)
}}return s.join("&").replace(r20,"+")
}});
function buildParams(prefix,obj,traditional,add){if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v)
}else{buildParams(prefix+"["+(typeof v==="object"||jQuery.isArray(v)?i:"")+"]",v,traditional,add)
}})
}else{if(!traditional&&obj!=null&&typeof obj==="object"){for(var name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add)
}}else{add(prefix,obj)
}}}jQuery.extend({active:0,lastModified:{},etag:{}});
function ajaxHandleResponses(s,jqXHR,responses){var contents=s.contents,dataTypes=s.dataTypes,responseFields=s.responseFields,ct,type,finalDataType,firstDataType;
for(type in responseFields){if(type in responses){jqXHR[responseFields[type]]=responses[type]
}}while(dataTypes[0]==="*"){dataTypes.shift();
if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("content-type")
}}if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);
break
}}}if(dataTypes[0] in responses){finalDataType=dataTypes[0]
}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;
break
}if(!firstDataType){firstDataType=type
}}finalDataType=finalDataType||firstDataType
}if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType)
}return responses[finalDataType]
}}function ajaxConvert(s,response){if(s.dataFilter){response=s.dataFilter(response,s.dataType)
}var dataTypes=s.dataTypes,converters={},i,key,length=dataTypes.length,tmp,current=dataTypes[0],prev,conversion,conv,conv1,conv2;
for(i=1;
i<length;
i++){if(i===1){for(key in s.converters){if(typeof key==="string"){converters[key.toLowerCase()]=s.converters[key]
}}}prev=current;
current=dataTypes[i];
if(current==="*"){current=prev
}else{if(prev!=="*"&&prev!==current){conversion=prev+" "+current;
conv=converters[conversion]||converters["* "+current];
if(!conv){conv2=undefined;
for(conv1 in converters){tmp=conv1.split(" ");
if(tmp[0]===prev||tmp[0]==="*"){conv2=converters[tmp[1]+" "+current];
if(conv2){conv1=converters[conv1];
if(conv1===true){conv=conv2
}else{if(conv2===true){conv=conv1
}}break
}}}}if(!(conv||conv2)){jQuery.error("No conversion from "+conversion.replace(" "," to "))
}if(conv!==true){response=conv?conv(response):conv2(conv1(response))
}}}}return response
}var jsc=jQuery.now(),jsre=/(\=)\?(&|$)|\?\?/i;
jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return jQuery.expando+"_"+(jsc++)
}});
jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var inspectData=s.contentType==="application/x-www-form-urlencoded"&&(typeof s.data==="string");
if(s.dataTypes[0]==="jsonp"||s.jsonp!==false&&(jsre.test(s.url)||inspectData&&jsre.test(s.data))){var responseContainer,jsonpCallback=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,previous=window[jsonpCallback],url=s.url,data=s.data,replace="$1"+jsonpCallback+"$2";
if(s.jsonp!==false){url=url.replace(jsre,replace);
if(s.url===url){if(inspectData){data=data.replace(jsre,replace)
}if(s.data===data){url+=(/\?/.test(url)?"&":"?")+s.jsonp+"="+jsonpCallback
}}}s.url=url;
s.data=data;
window[jsonpCallback]=function(response){responseContainer=[response]
};
jqXHR.always(function(){window[jsonpCallback]=previous;
if(responseContainer&&jQuery.isFunction(previous)){window[jsonpCallback](responseContainer[0])
}});
s.converters["script json"]=function(){if(!responseContainer){jQuery.error(jsonpCallback+" was not called")
}return responseContainer[0]
};
s.dataTypes[0]="json";
return"script"
}});
jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(text){jQuery.globalEval(text);
return text
}}});
jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false
}if(s.crossDomain){s.type="GET";
s.global=false
}});
jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,head=document.head||document.getElementsByTagName("head")[0]||document.documentElement;
return{send:function(_,callback){script=document.createElement("script");
script.async="async";
if(s.scriptCharset){script.charset=s.scriptCharset
}script.src=s.url;
script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;
if(head&&script.parentNode){head.removeChild(script)
}script=undefined;
if(!isAbort){callback(200,"success")
}}};
head.insertBefore(script,head.firstChild)
},abort:function(){if(script){script.onload(0,1)
}}}
}});
var xhrOnUnloadAbort=window.ActiveXObject?function(){for(var key in xhrCallbacks){xhrCallbacks[key](0,1)
}}:false,xhrId=0,xhrCallbacks;
function createStandardXHR(){try{return new window.XMLHttpRequest()
}catch(e){}}function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")
}catch(e){}}jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return !this.isLocal&&createStandardXHR()||createActiveXHR()
}:createStandardXHR;
(function(xhr){jQuery.extend(jQuery.support,{ajax:!!xhr,cors:!!xhr&&("withCredentials" in xhr)})
})(jQuery.ajaxSettings.xhr());
if(jQuery.support.ajax){jQuery.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callback;
return{send:function(headers,complete){var xhr=s.xhr(),handle,i;
var hook=null;
try{hook=_g.shared.HTTP.getXhrHook(s.url,type,s.data);
if(hook){s.url=hook.url;
if(hook.params){s.data=hook.params
}}}catch(e){}if(s.username){xhr.open(s.type,s.url,s.async,s.username,s.password)
}else{xhr.open(s.type,s.url,s.async)
}if(s.xhrFields){for(i in s.xhrFields){xhr[i]=s.xhrFields[i]
}}if(s.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(s.mimeType)
}if(!s.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest"
}try{for(i in headers){xhr.setRequestHeader(i,headers[i])
}}catch(_){}xhr.send((s.hasContent&&s.data)||null);
callback=function(_,isAbort){var status,statusText,responseHeaders,responses,xml;
try{if(callback&&(isAbort||xhr.readyState===4)){callback=undefined;
if(handle){xhr.onreadystatechange=jQuery.noop;
if(xhrOnUnloadAbort){delete xhrCallbacks[handle]
}}if(isAbort){if(xhr.readyState!==4){xhr.abort()
}}else{status=xhr.status;
responseHeaders=xhr.getAllResponseHeaders();
responses={};
xml=xhr.responseXML;
if(xml&&xml.documentElement){responses.xml=xml
}responses.text=xhr.responseText;
try{statusText=xhr.statusText
}catch(e){statusText=""
}if(!status&&s.isLocal&&!s.crossDomain){status=responses.text?200:404
}else{if(status===1223){status=204
}}}}}catch(firefoxAccessException){if(!isAbort){complete(-1,firefoxAccessException)
}}if(responses){complete(status,statusText,responses,responseHeaders)
}};
if(!s.async||xhr.readyState===4){callback()
}else{handle=++xhrId;
if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};
jQuery(window).unload(xhrOnUnloadAbort)
}xhrCallbacks[handle]=callback
}xhr.onreadystatechange=callback
}},abort:function(){if(callback){callback(0,1)
}}}
}})
}var elemdisplay={},iframe,iframeDoc,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],fxNow;
jQuery.fn.extend({show:function(speed,easing,callback){var elem,display;
if(speed||speed===0){return this.animate(genFx("show",3),speed,easing,callback)
}else{for(var i=0,j=this.length;
i<j;
i++){elem=this[i];
if(elem.style){display=elem.style.display;
if(!jQuery._data(elem,"olddisplay")&&display==="none"){display=elem.style.display=""
}if(display===""&&jQuery.css(elem,"display")==="none"){jQuery._data(elem,"olddisplay",defaultDisplay(elem.nodeName))
}}}for(i=0;
i<j;
i++){elem=this[i];
if(elem.style){display=elem.style.display;
if(display===""||display==="none"){elem.style.display=jQuery._data(elem,"olddisplay")||""
}}}return this
}},hide:function(speed,easing,callback){if(speed||speed===0){return this.animate(genFx("hide",3),speed,easing,callback)
}else{var elem,display,i=0,j=this.length;
for(;
i<j;
i++){elem=this[i];
if(elem.style){display=jQuery.css(elem,"display");
if(display!=="none"&&!jQuery._data(elem,"olddisplay")){jQuery._data(elem,"olddisplay",display)
}}}for(i=0;
i<j;
i++){if(this[i].style){this[i].style.display="none"
}}return this
}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2,callback){var bool=typeof fn==="boolean";
if(jQuery.isFunction(fn)&&jQuery.isFunction(fn2)){this._toggle.apply(this,arguments)
}else{if(fn==null||bool){this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");
jQuery(this)[state?"show":"hide"]()
})
}else{this.animate(genFx("toggle",3),fn,fn2,callback)
}}return this
},fadeTo:function(speed,to,easing,callback){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)
},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);
if(jQuery.isEmptyObject(prop)){return this.each(optall.complete,[false])
}prop=jQuery.extend({},prop);
function doAnimation(){if(optall.queue===false){jQuery._mark(this)
}var opt=jQuery.extend({},optall),isElement=this.nodeType===1,hidden=isElement&&jQuery(this).is(":hidden"),name,val,p,e,parts,start,end,unit,method;
opt.animatedProperties={};
for(p in prop){name=jQuery.camelCase(p);
if(p!==name){prop[name]=prop[p];
delete prop[p]
}val=prop[name];
if(jQuery.isArray(val)){opt.animatedProperties[name]=val[1];
val=prop[name]=val[0]
}else{opt.animatedProperties[name]=opt.specialEasing&&opt.specialEasing[name]||opt.easing||"swing"
}if(val==="hide"&&hidden||val==="show"&&!hidden){return opt.complete.call(this)
}if(isElement&&(name==="height"||name==="width")){opt.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];
if(jQuery.css(this,"display")==="inline"&&jQuery.css(this,"float")==="none"){if(!jQuery.support.inlineBlockNeedsLayout||defaultDisplay(this.nodeName)==="inline"){this.style.display="inline-block"
}else{this.style.zoom=1
}}}}if(opt.overflow!=null){this.style.overflow="hidden"
}for(p in prop){e=new jQuery.fx(this,opt,p);
val=prop[p];
if(rfxtypes.test(val)){method=jQuery._data(this,"toggle"+p)||(val==="toggle"?hidden?"show":"hide":0);
if(method){jQuery._data(this,"toggle"+p,method==="show"?"hide":"show");
e[method]()
}else{e[val]()
}}else{parts=rfxnum.exec(val);
start=e.cur();
if(parts){end=parseFloat(parts[2]);
unit=parts[3]||(jQuery.cssNumber[p]?"":"px");
if(unit!=="px"){jQuery.style(this,p,(end||1)+unit);
start=((end||1)/e.cur())*start;
jQuery.style(this,p,start+unit)
}if(parts[1]){end=((parts[1]==="-="?-1:1)*end)+start
}e.custom(start,end,unit)
}else{e.custom(start,val,"")
}}}return true
}return optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation)
},stop:function(type,clearQueue,gotoEnd){if(typeof type!=="string"){gotoEnd=clearQueue;
clearQueue=type;
type=undefined
}if(clearQueue&&type!==false){this.queue(type||"fx",[])
}return this.each(function(){var i,hadTimers=false,timers=jQuery.timers,data=jQuery._data(this);
if(!gotoEnd){jQuery._unmark(true,this)
}function stopQueue(elem,data,i){var hooks=data[i];
jQuery.removeData(elem,i,true);
hooks.stop(gotoEnd)
}if(type==null){for(i in data){if(data[i].stop&&i.indexOf(".run")===i.length-4){stopQueue(this,data,i)
}}}else{if(data[i=type+".run"]&&data[i].stop){stopQueue(this,data,i)
}}for(i=timers.length;
i--;
){if(timers[i].elem===this&&(type==null||timers[i].queue===type)){if(gotoEnd){timers[i](true)
}else{timers[i].saveState()
}hadTimers=true;
timers.splice(i,1)
}}if(!(gotoEnd&&hadTimers)){jQuery.dequeue(this,type)
}})
}});
function createFxNow(){setTimeout(clearFxNow,0);
return(fxNow=jQuery.now())
}function clearFxNow(){fxNow=undefined
}function genFx(type,num){var obj={};
jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type
});
return obj
}jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)
}
});
jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};
opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default;
if(opt.queue==null||opt.queue===true){opt.queue="fx"
}opt.old=opt.complete;
opt.complete=function(noUnmark){if(jQuery.isFunction(opt.old)){opt.old.call(this)
}if(opt.queue){jQuery.dequeue(this,opt.queue)
}else{if(noUnmark!==false){jQuery._unmark(this)
}}};
return opt
},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p
},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum
}},timers:[],fx:function(elem,options,prop){this.options=options;
this.elem=elem;
this.prop=prop;
options.orig=options.orig||{}
}});
jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)
}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this)
},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]
}var parsed,r=jQuery.css(this.elem,this.prop);
return isNaN(parsed=parseFloat(r))?!r||r==="auto"?0:r:parsed
},custom:function(from,to,unit){var self=this,fx=jQuery.fx;
this.startTime=fxNow||createFxNow();
this.end=to;
this.now=this.start=from;
this.pos=this.state=0;
this.unit=unit||this.unit||(jQuery.cssNumber[this.prop]?"":"px");
function t(gotoEnd){return self.step(gotoEnd)
}t.queue=this.options.queue;
t.elem=this.elem;
t.saveState=function(){if(self.options.hide&&jQuery._data(self.elem,"fxshow"+self.prop)===undefined){jQuery._data(self.elem,"fxshow"+self.prop,self.start)
}};
if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(fx.tick,fx.interval)
}},show:function(){var dataShow=jQuery._data(this.elem,"fxshow"+this.prop);
this.options.orig[this.prop]=dataShow||jQuery.style(this.elem,this.prop);
this.options.show=true;
if(dataShow!==undefined){this.custom(this.cur(),dataShow)
}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())
}jQuery(this.elem).show()
},hide:function(){this.options.orig[this.prop]=jQuery._data(this.elem,"fxshow"+this.prop)||jQuery.style(this.elem,this.prop);
this.options.hide=true;
this.custom(this.cur(),0)
},step:function(gotoEnd){var p,n,complete,t=fxNow||createFxNow(),done=true,elem=this.elem,options=this.options;
if(gotoEnd||t>=options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
options.animatedProperties[this.prop]=true;
for(p in options.animatedProperties){if(options.animatedProperties[p]!==true){done=false
}}if(done){if(options.overflow!=null&&!jQuery.support.shrinkWrapBlocks){jQuery.each(["","X","Y"],function(index,value){elem.style["overflow"+value]=options.overflow[index]
})
}if(options.hide){jQuery(elem).hide()
}if(options.hide||options.show){for(p in options.animatedProperties){jQuery.style(elem,p,options.orig[p]);
jQuery.removeData(elem,"fxshow"+p,true);
jQuery.removeData(elem,"toggle"+p,true)
}}complete=options.complete;
if(complete){options.complete=false;
complete.call(elem)
}}return false
}else{if(options.duration==Infinity){this.now=t
}else{n=t-this.startTime;
this.state=n/options.duration;
this.pos=jQuery.easing[options.animatedProperties[this.prop]](this.state,n,0,1,options.duration);
this.now=this.start+((this.end-this.start)*this.pos)
}this.update()
}return true
}};
jQuery.extend(jQuery.fx,{tick:function(){var timer,timers=jQuery.timers,i=0;
for(;
i<timers.length;
i++){timer=timers[i];
if(!timer()&&timers[i]===timer){timers.splice(i--,1)
}}if(!timers.length){jQuery.fx.stop()
}},interval:13,stop:function(){clearInterval(timerId);
timerId=null
},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.style(fx.elem,"opacity",fx.now)
},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=fx.now+fx.unit
}else{fx.elem[fx.prop]=fx.now
}}}});
jQuery.each(["width","height"],function(i,prop){jQuery.fx.step[prop]=function(fx){jQuery.style(fx.elem,prop,Math.max(0,fx.now))
}
});
if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem
}).length
}
}function defaultDisplay(nodeName){if(!elemdisplay[nodeName]){var body=document.body,elem=jQuery("<"+nodeName+">").appendTo(body),display=elem.css("display");
elem.remove();
if(display==="none"||display===""){if(!iframe){iframe=document.createElement("iframe");
iframe.frameBorder=iframe.width=iframe.height=0
}body.appendChild(iframe);
if(!iframeDoc||!iframe.createElement){iframeDoc=(iframe.contentWindow||iframe.contentDocument).document;
iframeDoc.write((document.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");
iframeDoc.close()
}elem=iframeDoc.createElement(nodeName);
iframeDoc.body.appendChild(elem);
display=jQuery.css(elem,"display");
body.removeChild(iframe)
}elemdisplay[nodeName]=display
}return elemdisplay[nodeName]
}var rtable=/^t(?:able|d|h)$/i,rroot=/^(?:body|html)$/i;
if("getBoundingClientRect" in document.documentElement){jQuery.fn.offset=function(options){var elem=this[0],box;
if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i)
})
}if(!elem||!elem.ownerDocument){return null
}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem)
}try{box=elem.getBoundingClientRect()
}catch(e){}var doc=elem.ownerDocument,docElem=doc.documentElement;
if(!box||!jQuery.contains(docElem,elem)){return box?{top:box.top,left:box.left}:{top:0,left:0}
}var body=doc.body,win=getWindow(doc),clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,scrollTop=win.pageYOffset||jQuery.support.boxModel&&docElem.scrollTop||body.scrollTop,scrollLeft=win.pageXOffset||jQuery.support.boxModel&&docElem.scrollLeft||body.scrollLeft,top=box.top+scrollTop-clientTop,left=box.left+scrollLeft-clientLeft;
return{top:top,left:left}
}
}else{jQuery.fn.offset=function(options){var elem=this[0];
if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i)
})
}if(!elem||!elem.ownerDocument){return null
}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem)
}var computedStyle,offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle,top=elem.offsetTop,left=elem.offsetLeft;
while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){if(jQuery.support.fixedPosition&&prevComputedStyle.position==="fixed"){break
}computedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle;
top-=elem.scrollTop;
left-=elem.scrollLeft;
if(elem===offsetParent){top+=elem.offsetTop;
left+=elem.offsetLeft;
if(jQuery.support.doesNotAddBorder&&!(jQuery.support.doesAddBorderForTableAndCells&&rtable.test(elem.nodeName))){top+=parseFloat(computedStyle.borderTopWidth)||0;
left+=parseFloat(computedStyle.borderLeftWidth)||0
}prevOffsetParent=offsetParent;
offsetParent=elem.offsetParent
}if(jQuery.support.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;
left+=parseFloat(computedStyle.borderLeftWidth)||0
}prevComputedStyle=computedStyle
}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop;
left+=body.offsetLeft
}if(jQuery.support.fixedPosition&&prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop);
left+=Math.max(docElem.scrollLeft,body.scrollLeft)
}return{top:top,left:left}
}
}jQuery.offset={bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;
if(jQuery.support.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.css(body,"marginTop"))||0;
left+=parseFloat(jQuery.css(body,"marginLeft"))||0
}return{top:top,left:left}
},setOffset:function(elem,options,i){var position=jQuery.css(elem,"position");
if(position==="static"){elem.style.position="relative"
}var curElem=jQuery(elem),curOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curCSSLeft=jQuery.css(elem,"left"),calculatePosition=(position==="absolute"||position==="fixed")&&jQuery.inArray("auto",[curCSSTop,curCSSLeft])>-1,props={},curPosition={},curTop,curLeft;
if(calculatePosition){curPosition=curElem.position();
curTop=curPosition.top;
curLeft=curPosition.left
}else{curTop=parseFloat(curCSSTop)||0;
curLeft=parseFloat(curCSSLeft)||0
}if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset)
}if(options.top!=null){props.top=(options.top-curOffset.top)+curTop
}if(options.left!=null){props.left=(options.left-curOffset.left)+curLeft
}if("using" in options){options.using.call(elem,props)
}else{curElem.css(props)
}}};
jQuery.fn.extend({position:function(){if(!this[0]){return null
}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=rroot.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();
offset.top-=parseFloat(jQuery.css(elem,"marginTop"))||0;
offset.left-=parseFloat(jQuery.css(elem,"marginLeft"))||0;
parentOffset.top+=parseFloat(jQuery.css(offsetParent[0],"borderTopWidth"))||0;
parentOffset.left+=parseFloat(jQuery.css(offsetParent[0],"borderLeftWidth"))||0;
return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}
},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;
while(offsetParent&&(!rroot.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent
}return offsetParent
})
}});
jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;
jQuery.fn[method]=function(val){var elem,win;
if(val===undefined){elem=this[0];
if(!elem){return null
}win=getWindow(elem);
return win?("pageXOffset" in win)?win[i?"pageYOffset":"pageXOffset"]:jQuery.support.boxModel&&win.document.documentElement[method]||win.document.body[method]:elem[method]
}return this.each(function(){win=getWindow(this);
if(win){win.scrollTo(!i?val:jQuery(win).scrollLeft(),i?val:jQuery(win).scrollTop())
}else{this[method]=val
}})
}
});
function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false
}jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();
jQuery.fn["inner"+name]=function(){var elem=this[0];
return elem?elem.style?parseFloat(jQuery.css(elem,type,"padding")):this[type]():null
};
jQuery.fn["outer"+name]=function(margin){var elem=this[0];
return elem?elem.style?parseFloat(jQuery.css(elem,type,margin?"margin":"border")):this[type]():null
};
jQuery.fn[type]=function(size){var elem=this[0];
if(!elem){return size==null?null:this
}if(jQuery.isFunction(size)){return this.each(function(i){var self=jQuery(this);
self[type](size.call(this,i,self[type]()))
})
}if(jQuery.isWindow(elem)){var docElemProp=elem.document.documentElement["client"+name],body=elem.document.body;
return elem.document.compatMode==="CSS1Compat"&&docElemProp||body&&body["client"+name]||docElemProp
}else{if(elem.nodeType===9){return Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name])
}else{if(size===undefined){var orig=jQuery.css(elem,type),ret=parseFloat(orig);
return jQuery.isNumeric(ret)?ret:orig
}else{return this.css(type,typeof size==="string"?size:size+"px")
}}}}
});
window.jQuery=window.$=jQuery
})(window);
window._g=window._g||{};
window._g.$=$.noConflict();
_g.$.ajaxSettings.traditional=true;
window.$CQ=_g.$;
(function(jQuery,$){(function($,undefined){$.ui=$.ui||{};
if($.ui.version){return
}$.extend($.ui,{version:"1.8.16",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});
$.fn.extend({propAttr:$.fn.prop||$.fn.attr,_focus:$.fn.focus,focus:function(delay,fn){return typeof delay==="number"?this.each(function(){var elem=this;
setTimeout(function(){$(elem).focus();
if(fn){fn.call(elem)
}},delay)
}):this._focus.apply(this,arguments)
},scrollParent:function(){var scrollParent;
if(($.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,"position",1))&&(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1))
}).eq(0)
}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1))
}).eq(0)
}return(/fixed/).test(this.css("position"))||!scrollParent.length?$(document):scrollParent
},zIndex:function(zIndex){if(zIndex!==undefined){return this.css("zIndex",zIndex)
}if(this.length){var elem=$(this[0]),position,value;
while(elem.length&&elem[0]!==document){position=elem.css("position");
if(position==="absolute"||position==="relative"||position==="fixed"){value=parseInt(elem.css("zIndex"),10);
if(!isNaN(value)&&value!==0){return value
}}elem=elem.parent()
}}return 0
},disableSelection:function(){return this.bind(($.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(event){event.preventDefault()
})
},enableSelection:function(){return this.unbind(".ui-disableSelection")
}});
$.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight};
function reduce(elem,size,border,margin){$.each(side,function(){size-=parseFloat($.curCSS(elem,"padding"+this,true))||0;
if(border){size-=parseFloat($.curCSS(elem,"border"+this+"Width",true))||0
}if(margin){size-=parseFloat($.curCSS(elem,"margin"+this,true))||0
}});
return size
}$.fn["inner"+name]=function(size){if(size===undefined){return orig["inner"+name].call(this)
}return this.each(function(){$(this).css(type,reduce(this,size)+"px")
})
};
$.fn["outer"+name]=function(size,margin){if(typeof size!=="number"){return orig["outer"+name].call(this,size)
}return this.each(function(){$(this).css(type,reduce(this,size,true,margin)+"px")
})
}
});
function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();
if("area"===nodeName){var map=element.parentNode,mapName=map.name,img;
if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map"){return false
}img=$("img[usemap=#"+mapName+"]")[0];
return !!img&&visible(img)
}return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"==nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element)
}function visible(element){return !$(element).parents().andSelf().filter(function(){return $.curCSS(this,"visibility")==="hidden"||$.expr.filters.hidden(this)
}).length
}$.extend($.expr[":"],{data:function(elem,i,match){return !!$.data(elem,match[3])
},focusable:function(element){return focusable(element,!isNaN($.attr(element,"tabindex")))
},tabbable:function(element){var tabIndex=$.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);
return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)
}});
$(function(){var body=document.body,div=body.appendChild(div=document.createElement("div"));
$.extend(div.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});
$.support.minHeight=div.offsetHeight===100;
$.support.selectstart="onselectstart" in div;
body.removeChild(div).style.display="none"
});
$.extend($.ui,{plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;
for(var i in set){proto.plugins[i]=proto.plugins[i]||[];
proto.plugins[i].push([option,set[i]])
}},call:function(instance,name,args){var set=instance.plugins[name];
if(!set||!instance.element[0].parentNode){return
}for(var i=0;
i<set.length;
i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args)
}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)
},hasScroll:function(el,a){if($(el).css("overflow")==="hidden"){return false
}var scroll=(a&&a==="left")?"scrollLeft":"scrollTop",has=false;
if(el[scroll]>0){return true
}el[scroll]=1;
has=(el[scroll]>0);
el[scroll]=0;
return has
},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size))
},isOver:function(y,x,top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,left,width)
}})
})(jQuery);
(function($,undefined){if($.cleanData){var _cleanData=$.cleanData;
$.cleanData=function(elems){for(var i=0,elem;
(elem=elems[i])!=null;
i++){try{$(elem).triggerHandler("remove")
}catch(e){}}_cleanData(elems)
}
}else{var _remove=$.fn.remove;
$.fn.remove=function(selector,keepData){return this.each(function(){if(!keepData){if(!selector||$.filter(selector,[this]).length){$("*",this).add([this]).each(function(){try{$(this).triggerHandler("remove")
}catch(e){}})
}}return _remove.call($(this),selector,keepData)
})
}
}$.widget=function(name,base,prototype){var namespace=name.split(".")[0],fullName;
name=name.split(".")[1];
fullName=namespace+"-"+name;
if(!prototype){prototype=base;
base=$.Widget
}$.expr[":"][fullName]=function(elem){return !!$.data(elem,name)
};
$[namespace]=$[namespace]||{};
$[namespace][name]=function(options,element){if(arguments.length){this._createWidget(options,element)
}};
var basePrototype=new base();
basePrototype.options=$.extend(true,{},basePrototype.options);
$[namespace][name].prototype=$.extend(true,basePrototype,{namespace:namespace,widgetName:name,widgetEventPrefix:$[namespace][name].prototype.widgetEventPrefix||name,widgetBaseClass:fullName},prototype);
$.widget.bridge(name,$[namespace][name])
};
$.widget.bridge=function(name,object){$.fn[name]=function(options){var isMethodCall=typeof options==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;
options=!isMethodCall&&args.length?$.extend.apply(null,[true,options].concat(args)):options;
if(isMethodCall&&options.charAt(0)==="_"){return returnValue
}if(isMethodCall){this.each(function(){var instance=$.data(this,name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;
if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue;
return false
}})
}else{this.each(function(){var instance=$.data(this,name);
if(instance){instance.option(options||{})._init()
}else{$.data(this,name,new object(options,this))
}})
}return returnValue
}
};
$.Widget=function(options,element){if(arguments.length){this._createWidget(options,element)
}};
$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(options,element){$.data(element,this.widgetName,this);
this.element=$(element);
this.options=$.extend(true,{},this.options,this._getCreateOptions(),options);
var self=this;
this.element.bind("remove."+this.widgetName,function(){self.destroy()
});
this._create();
this._trigger("create");
this._init()
},_getCreateOptions:function(){return $.metadata&&$.metadata.get(this.element[0])[this.widgetName]
},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")
},widget:function(){return this.element
},option:function(key,value){var options=key;
if(arguments.length===0){return $.extend({},this.options)
}if(typeof key==="string"){if(value===undefined){return this.options[key]
}options={};
options[key]=value
}this._setOptions(options);
return this
},_setOptions:function(options){var self=this;
$.each(options,function(key,value){self._setOption(key,value)
});
return this
},_setOption:function(key,value){this.options[key]=value;
if(key==="disabled"){this.widget()[value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",value)
}return this
},enable:function(){return this._setOption("disabled",false)
},disable:function(){return this._setOption("disabled",true)
},_trigger:function(type,event,data){var callback=this.options[type];
event=$.Event(event);
event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();
data=data||{};
if(event.originalEvent){for(var i=$.event.props.length,prop;
i;
){prop=$.event.props[--i];
event[prop]=event.originalEvent[prop]
}}this.element.trigger(event,data);
return !($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented())
}}
})(jQuery);
(function($,undefined){var mouseHandled=false;
$(document).mouseup(function(e){mouseHandled=false
});
$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;
this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)
}).bind("click."+this.widgetName,function(event){if(true===$.data(event.target,self.widgetName+".preventClickEvent")){$.removeData(event.target,self.widgetName+".preventClickEvent");
event.stopImmediatePropagation();
return false
}});
this.started=false
},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)
},_mouseDown:function(event){if(mouseHandled){return
}(this._mouseStarted&&this._mouseUp(event));
this._mouseDownEvent=event;
var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"&&event.target.nodeName?$(event.target).closest(this.options.cancel).length:false);
if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true
}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true
},this.options.delay)
}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);
if(!this._mouseStarted){event.preventDefault();
return true
}}if(true===$.data(event.target,this.widgetName+".preventClickEvent")){$.removeData(event.target,this.widgetName+".preventClickEvent")
}this._mouseMoveDelegate=function(event){return self._mouseMove(event)
};
this._mouseUpDelegate=function(event){return self._mouseUp(event)
};
$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
event.preventDefault();
mouseHandled=true;
return true
},_mouseMove:function(event){if($.browser.msie&&!(document.documentMode>=9)&&!event.button){return this._mouseUp(event)
}if(this._mouseStarted){this._mouseDrag(event);
return event.preventDefault()
}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);
(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event))
}return !this._mouseStarted
},_mouseUp:function(event){$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;
if(event.target==this._mouseDownEvent.target){$.data(event.target,this.widgetName+".preventClickEvent",true)
}this._mouseStop(event)
}return false
},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance)
},_mouseDelayMet:function(event){return this.mouseDelayMet
},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true
}})
})(jQuery);
(function($,undefined){$.ui=$.ui||{};
var horizontalPositions=/left|center|right/,verticalPositions=/top|center|bottom/,center="center",_position=$.fn.position,_offset=$.fn.offset;
$.fn.position=function(options){if(!options||!options.of){return _position.apply(this,arguments)
}options=$.extend({},options);
var target=$(options.of),targetElem=target[0],collision=(options.collision||"flip").split(" "),offset=options.offset?options.offset.split(" "):[0,0],targetWidth,targetHeight,basePosition;
if(targetElem.nodeType===9){targetWidth=target.width();
targetHeight=target.height();
basePosition={top:0,left:0}
}else{if(targetElem.setTimeout){targetWidth=target.width();
targetHeight=target.height();
basePosition={top:target.scrollTop(),left:target.scrollLeft()}
}else{if(targetElem.preventDefault){options.at="left top";
targetWidth=targetHeight=0;
basePosition={top:options.of.pageY,left:options.of.pageX}
}else{targetWidth=target.outerWidth();
targetHeight=target.outerHeight();
basePosition=target.offset()
}}}$.each(["my","at"],function(){var pos=(options[this]||"").split(" ");
if(pos.length===1){pos=horizontalPositions.test(pos[0])?pos.concat([center]):verticalPositions.test(pos[0])?[center].concat(pos):[center,center]
}pos[0]=horizontalPositions.test(pos[0])?pos[0]:center;
pos[1]=verticalPositions.test(pos[1])?pos[1]:center;
options[this]=pos
});
if(collision.length===1){collision[1]=collision[0]
}offset[0]=parseInt(offset[0],10)||0;
if(offset.length===1){offset[1]=offset[0]
}offset[1]=parseInt(offset[1],10)||0;
if(options.at[0]==="right"){basePosition.left+=targetWidth
}else{if(options.at[0]===center){basePosition.left+=targetWidth/2
}}if(options.at[1]==="bottom"){basePosition.top+=targetHeight
}else{if(options.at[1]===center){basePosition.top+=targetHeight/2
}}basePosition.left+=offset[0];
basePosition.top+=offset[1];
return this.each(function(){var elem=$(this),elemWidth=elem.outerWidth(),elemHeight=elem.outerHeight(),marginLeft=parseInt($.curCSS(this,"marginLeft",true))||0,marginTop=parseInt($.curCSS(this,"marginTop",true))||0,collisionWidth=elemWidth+marginLeft+(parseInt($.curCSS(this,"marginRight",true))||0),collisionHeight=elemHeight+marginTop+(parseInt($.curCSS(this,"marginBottom",true))||0),position=$.extend({},basePosition),collisionPosition;
if(options.my[0]==="right"){position.left-=elemWidth
}else{if(options.my[0]===center){position.left-=elemWidth/2
}}if(options.my[1]==="bottom"){position.top-=elemHeight
}else{if(options.my[1]===center){position.top-=elemHeight/2
}}position.left=Math.round(position.left);
position.top=Math.round(position.top);
collisionPosition={left:position.left-marginLeft,top:position.top-marginTop};
$.each(["left","top"],function(i,dir){if($.ui.position[collision[i]]){$.ui.position[collision[i]][dir](position,{targetWidth:targetWidth,targetHeight:targetHeight,elemWidth:elemWidth,elemHeight:elemHeight,collisionPosition:collisionPosition,collisionWidth:collisionWidth,collisionHeight:collisionHeight,offset:offset,my:options.my,at:options.at})
}});
if($.fn.bgiframe){elem.bgiframe()
}elem.offset($.extend(position,{using:options.using}))
})
};
$.ui.position={fit:{left:function(position,data){var win=$(window),over=data.collisionPosition.left+data.collisionWidth-win.width()-win.scrollLeft();
position.left=over>0?position.left-over:Math.max(position.left-data.collisionPosition.left,position.left)
},top:function(position,data){var win=$(window),over=data.collisionPosition.top+data.collisionHeight-win.height()-win.scrollTop();
position.top=over>0?position.top-over:Math.max(position.top-data.collisionPosition.top,position.top)
}},flip:{left:function(position,data){if(data.at[0]===center){return
}var win=$(window),over=data.collisionPosition.left+data.collisionWidth-win.width()-win.scrollLeft(),myOffset=data.my[0]==="left"?-data.elemWidth:data.my[0]==="right"?data.elemWidth:0,atOffset=data.at[0]==="left"?data.targetWidth:-data.targetWidth,offset=-2*data.offset[0];
position.left+=data.collisionPosition.left<0?myOffset+atOffset+offset:over>0?myOffset+atOffset+offset:0
},top:function(position,data){if(data.at[1]===center){return
}var win=$(window),over=data.collisionPosition.top+data.collisionHeight-win.height()-win.scrollTop(),myOffset=data.my[1]==="top"?-data.elemHeight:data.my[1]==="bottom"?data.elemHeight:0,atOffset=data.at[1]==="top"?data.targetHeight:-data.targetHeight,offset=-2*data.offset[1];
position.top+=data.collisionPosition.top<0?myOffset+atOffset+offset:over>0?myOffset+atOffset+offset:0
}}};
if(!$.offset.setOffset){$.offset.setOffset=function(elem,options){if(/static/.test($.curCSS(elem,"position"))){elem.style.position="relative"
}var curElem=$(elem),curOffset=curElem.offset(),curTop=parseInt($.curCSS(elem,"top",true),10)||0,curLeft=parseInt($.curCSS(elem,"left",true),10)||0,props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.left)+curLeft};
if("using" in options){options.using.call(elem,props)
}else{curElem.css(props)
}};
$.fn.offset=function(options){var elem=this[0];
if(!elem||!elem.ownerDocument){return null
}if(options){return this.each(function(){$.offset.setOffset(this,options)
})
}return _offset.call(this)
}
}}(jQuery));
(function($,undefined){$.widget("ui.draggable",$.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"
}(this.options.addClasses&&this.element.addClass("ui-draggable"));
(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));
this._mouseInit()
},destroy:function(){if(!this.element.data("draggable")){return
}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy();
return this
},_mouseCapture:function(event){var o=this.options;
if(this.helper||o.disabled||$(event.target).is(".ui-resizable-handle")){return false
}this.handle=this._getHandle(event);
if(!this.handle){return false
}if(o.iframeFix){$(o.iframeFix===true?"iframe":o.iframeFix).each(function(){$('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css($(this).offset()).appendTo("body")
})
}return true
},_mouseStart:function(event){var o=this.options;
this.helper=this._createHelper(event);
this._cacheHelperProportions();
if($.ui.ddmanager){$.ui.ddmanager.current=this
}this._cacheMargins();
this.cssPosition=this.helper.css("position");
this.scrollParent=this.helper.scrollParent();
this.offset=this.positionAbs=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this.position=this._generatePosition(event);
this.originalPageX=event.pageX;
this.originalPageY=event.pageY;
(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));
if(o.containment){this._setContainment()
}if(this._trigger("start",event)===false){this._clear();
return false
}this._cacheHelperProportions();
if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)
}this.helper.addClass("ui-draggable-dragging");
this._mouseDrag(event,true);
if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event)
}return true
},_mouseDrag:function(event,noPropagation){this.position=this._generatePosition(event);
this.positionAbs=this._convertPositionTo("absolute");
if(!noPropagation){var ui=this._uiHash();
if(this._trigger("drag",event,ui)===false){this._mouseUp({});
return false
}this.position=ui.position
}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"
}if($.ui.ddmanager){$.ui.ddmanager.drag(this,event)
}return false
},_mouseStop:function(event){var dropped=false;
if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event)
}if(this.dropped){dropped=this.dropped;
this.dropped=false
}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false
}if((this.options.revert=="invalid"&&!dropped)||(this.options.revert=="valid"&&dropped)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,dropped))){var self=this;
$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(self._trigger("stop",event)!==false){self._clear()
}})
}else{if(this._trigger("stop",event)!==false){this._clear()
}}return false
},_mouseUp:function(event){if(this.options.iframeFix===true){$("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)
})
}if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event)
}return $.ui.mouse.prototype._mouseUp.call(this,event)
},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})
}else{this._clear()
}return this
},_getHandle:function(event){var handle=!this.options.handle||!$(this.options.handle,this.element).length?true:false;
$(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==event.target){handle=true
}});
return handle
},_createHelper:function(event){var o=this.options;
var helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event])):(o.helper=="clone"?this.element.clone().removeAttr("id"):this.element);
if(!helper.parents("body").length){helper.appendTo((o.appendTo=="parent"?this.element[0].parentNode:o.appendTo))
}if(helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(helper.css("position"))){helper.css("position","absolute")
}return helper
},_adjustOffsetFromHelper:function(obj){if(typeof obj=="string"){obj=obj.split(" ")
}if($.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0}
}if("left" in obj){this.offset.click.left=obj.left+this.margins.left
}if("right" in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left
}if("top" in obj){this.offset.click.top=obj.top+this.margins.top
}if("bottom" in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var po=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();
po.top+=this.scrollParent.scrollTop()
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&$.browser.msie)){po={top:0,left:0}
}return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var p=this.element.position();
return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{return{top:0,left:0}
}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}
},_setContainment:function(){var o=this.options;
if(o.containment=="parent"){o.containment=this.helper[0].parentNode
}if(o.containment=="document"||o.containment=="window"){this.containment=[o.containment=="document"?0:$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,o.containment=="document"?0:$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(o.containment=="document"?0:$(window).scrollLeft())+$(o.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(o.containment=="document"?0:$(window).scrollTop())+($(o.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!(/^(document|window|parent)$/).test(o.containment)&&o.containment.constructor!=Array){var c=$(o.containment);
var ce=c[0];
if(!ce){return
}var co=c.offset();
var over=($(ce).css("overflow")!="hidden");
this.containment=[(parseInt($(ce).css("borderLeftWidth"),10)||0)+(parseInt($(ce).css("paddingLeft"),10)||0),(parseInt($(ce).css("borderTopWidth"),10)||0)+(parseInt($(ce).css("paddingTop"),10)||0),(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"),10)||0)-(parseInt($(ce).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"),10)||0)-(parseInt($(ce).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];
this.relative_container=c
}else{if(o.containment.constructor==Array){this.containment=o.containment
}}},_convertPositionTo:function(d,pos){if(!pos){pos=this.position
}var mod=d=="absolute"?1:-1;
var o=this.options,scroll=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);
return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))}
},_generatePosition:function(event){var o=this.options,scroll=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);
var pageX=event.pageX;
var pageY=event.pageY;
if(this.originalPosition){var containment;
if(this.containment){if(this.relative_container){var co=this.relative_container.offset();
containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top]
}else{containment=this.containment
}if(event.pageX-this.offset.click.left<containment[0]){pageX=containment[0]+this.offset.click.left
}if(event.pageY-this.offset.click.top<containment[1]){pageY=containment[1]+this.offset.click.top
}if(event.pageX-this.offset.click.left>containment[2]){pageX=containment[2]+this.offset.click.left
}if(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top
}}if(o.grid){var top=o.grid[1]?this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;
pageY=containment?(!(top-this.offset.click.top<containment[1]||top-this.offset.click.top>containment[3])?top:(!(top-this.offset.click.top<containment[1])?top-o.grid[1]:top+o.grid[1])):top;
var left=o.grid[0]?this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;
pageX=containment?(!(left-this.offset.click.left<containment[0]||left-this.offset.click.left>containment[2])?left:(!(left-this.offset.click.left<containment[0])?left-o.grid[0]:left+o.grid[0])):left
}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))}
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()
}this.helper=null;
this.cancelHelperRemoval=false
},_trigger:function(type,event,ui){ui=ui||this._uiHash();
$.ui.plugin.call(this,type,[event,ui]);
if(type=="drag"){this.positionAbs=this._convertPositionTo("absolute")
}return $.Widget.prototype._trigger.call(this,type,event,ui)
},plugins:{},_uiHash:function(event){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}
}});
$.extend($.ui.draggable,{version:"1.8.16"});
$.ui.plugin.add("draggable","connectToSortable",{start:function(event,ui){var inst=$(this).data("draggable"),o=inst.options,uiSortable=$.extend({},ui,{item:inst.element});
inst.sortables=[];
$(o.connectToSortable).each(function(){var sortable=$.data(this,"sortable");
if(sortable&&!sortable.options.disabled){inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});
sortable.refreshPositions();
sortable._trigger("activate",event,uiSortable)
}})
},stop:function(event,ui){var inst=$(this).data("draggable"),uiSortable=$.extend({},ui,{item:inst.element});
$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;
inst.cancelHelperRemoval=true;
this.instance.cancelHelperRemoval=false;
if(this.shouldRevert){this.instance.options.revert=true
}this.instance._mouseStop(event);
this.instance.options.helper=this.instance.options._helper;
if(inst.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})
}}else{this.instance.cancelHelperRemoval=false;
this.instance._trigger("deactivate",event,uiSortable)
}})
},drag:function(event,ui){var inst=$(this).data("draggable"),self=this;
var checkPos=function(o){var dyClick=this.offset.click.top,dxClick=this.offset.click.left;
var helperTop=this.positionAbs.top,helperLeft=this.positionAbs.left;
var itemHeight=o.height,itemWidth=o.width;
var itemTop=o.top,itemLeft=o.left;
return $.ui.isOver(helperTop+dyClick,helperLeft+dxClick,itemTop,itemLeft,itemHeight,itemWidth)
};
$.each(inst.sortables,function(i){this.instance.positionAbs=inst.positionAbs;
this.instance.helperProportions=inst.helperProportions;
this.instance.offset.click=inst.offset.click;
if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;
this.instance.currentItem=$(self).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);
this.instance.options._helper=this.instance.options.helper;
this.instance.options.helper=function(){return ui.helper[0]
};
event.target=this.instance.currentItem[0];
this.instance._mouseCapture(event,true);
this.instance._mouseStart(event,true,true);
this.instance.offset.click.top=inst.offset.click.top;
this.instance.offset.click.left=inst.offset.click.left;
this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;
inst._trigger("toSortable",event);
inst.dropped=this.instance.element;
inst.currentItem=inst.element;
this.instance.fromOutside=inst
}if(this.instance.currentItem){this.instance._mouseDrag(event)
}}else{if(this.instance.isOver){this.instance.isOver=0;
this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;
this.instance._trigger("out",event,this.instance._uiHash(this.instance));
this.instance._mouseStop(event,true);
this.instance.options.helper=this.instance.options._helper;
this.instance.currentItem.remove();
if(this.instance.placeholder){this.instance.placeholder.remove()
}inst._trigger("fromSortable",event);
inst.dropped=false
}}})
}});
$.ui.plugin.add("draggable","cursor",{start:function(event,ui){var t=$("body"),o=$(this).data("draggable").options;
if(t.css("cursor")){o._cursor=t.css("cursor")
}t.css("cursor",o.cursor)
},stop:function(event,ui){var o=$(this).data("draggable").options;
if(o._cursor){$("body").css("cursor",o._cursor)
}}});
$.ui.plugin.add("draggable","opacity",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("draggable").options;
if(t.css("opacity")){o._opacity=t.css("opacity")
}t.css("opacity",o.opacity)
},stop:function(event,ui){var o=$(this).data("draggable").options;
if(o._opacity){$(ui.helper).css("opacity",o._opacity)
}}});
$.ui.plugin.add("draggable","scroll",{start:function(event,ui){var i=$(this).data("draggable");
if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML"){i.overflowOffset=i.scrollParent.offset()
}},drag:function(event,ui){var i=$(this).data("draggable"),o=i.options,scrolled=false;
if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML"){if(!o.axis||o.axis!="x"){if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-event.pageY<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop+o.scrollSpeed
}else{if(event.pageY-i.overflowOffset.top<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop-o.scrollSpeed
}}}if(!o.axis||o.axis!="y"){if((i.overflowOffset.left+i.scrollParent[0].offsetWidth)-event.pageX<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft+o.scrollSpeed
}else{if(event.pageX-i.overflowOffset.left<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft-o.scrollSpeed
}}}}else{if(!o.axis||o.axis!="x"){if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed)
}else{if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed)
}}}if(!o.axis||o.axis!="y"){if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed)
}else{if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed)
}}}}if(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(i,event)
}}});
$.ui.plugin.add("draggable","snap",{start:function(event,ui){var i=$(this).data("draggable"),o=i.options;
i.snapElements=[];
$(o.snap.constructor!=String?(o.snap.items||":data(draggable)"):o.snap).each(function(){var $t=$(this);
var $o=$t.offset();
if(this!=i.element[0]){i.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left:$o.left})
}})
},drag:function(event,ui){var inst=$(this).data("draggable"),o=inst.options;
var d=o.snapTolerance;
var x1=ui.offset.left,x2=x1+inst.helperProportions.width,y1=ui.offset.top,y2=y1+inst.helperProportions.height;
for(var i=inst.snapElements.length-1;
i>=0;
i--){var l=inst.snapElements[i].left,r=l+inst.snapElements[i].width,t=inst.snapElements[i].top,b=t+inst.snapElements[i].height;
if(!((l-d<x1&&x1<r+d&&t-d<y1&&y1<b+d)||(l-d<x1&&x1<r+d&&t-d<y2&&y2<b+d)||(l-d<x2&&x2<r+d&&t-d<y1&&y1<b+d)||(l-d<x2&&x2<r+d&&t-d<y2&&y2<b+d))){if(inst.snapElements[i].snapping){(inst.options.snap.release&&inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})))
}inst.snapElements[i].snapping=false;
continue
}if(o.snapMode!="inner"){var ts=Math.abs(t-y2)<=d;
var bs=Math.abs(b-y1)<=d;
var ls=Math.abs(l-x2)<=d;
var rs=Math.abs(r-x1)<=d;
if(ts){ui.position.top=inst._convertPositionTo("relative",{top:t-inst.helperProportions.height,left:0}).top-inst.margins.top
}if(bs){ui.position.top=inst._convertPositionTo("relative",{top:b,left:0}).top-inst.margins.top
}if(ls){ui.position.left=inst._convertPositionTo("relative",{top:0,left:l-inst.helperProportions.width}).left-inst.margins.left
}if(rs){ui.position.left=inst._convertPositionTo("relative",{top:0,left:r}).left-inst.margins.left
}}var first=(ts||bs||ls||rs);
if(o.snapMode!="outer"){var ts=Math.abs(t-y1)<=d;
var bs=Math.abs(b-y2)<=d;
var ls=Math.abs(l-x1)<=d;
var rs=Math.abs(r-x2)<=d;
if(ts){ui.position.top=inst._convertPositionTo("relative",{top:t,left:0}).top-inst.margins.top
}if(bs){ui.position.top=inst._convertPositionTo("relative",{top:b-inst.helperProportions.height,left:0}).top-inst.margins.top
}if(ls){ui.position.left=inst._convertPositionTo("relative",{top:0,left:l}).left-inst.margins.left
}if(rs){ui.position.left=inst._convertPositionTo("relative",{top:0,left:r-inst.helperProportions.width}).left-inst.margins.left
}}if(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){(inst.options.snap.snap&&inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})))
}inst.snapElements[i].snapping=(ts||bs||ls||rs||first)
}}});
$.ui.plugin.add("draggable","stack",{start:function(event,ui){var o=$(this).data("draggable").options;
var group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css("zIndex"),10)||0)-(parseInt($(b).css("zIndex"),10)||0)
});
if(!group.length){return
}var min=parseInt(group[0].style.zIndex)||0;
$(group).each(function(i){this.style.zIndex=min+i
});
this[0].style.zIndex=min+group.length
}});
$.ui.plugin.add("draggable","zIndex",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("draggable").options;
if(t.css("zIndex")){o._zIndex=t.css("zIndex")
}t.css("zIndex",o.zIndex)
},stop:function(event,ui){var o=$(this).data("draggable").options;
if(o._zIndex){$(ui.helper).css("zIndex",o._zIndex)
}}})
})(jQuery);
(function($,undefined){$.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var o=this.options,accept=o.accept;
this.isover=0;
this.isout=1;
this.accept=$.isFunction(accept)?accept:function(d){return d.is(accept)
};
this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};
$.ui.ddmanager.droppables[o.scope]=$.ui.ddmanager.droppables[o.scope]||[];
$.ui.ddmanager.droppables[o.scope].push(this);
(o.addClasses&&this.element.addClass("ui-droppable"))
},destroy:function(){var drop=$.ui.ddmanager.droppables[this.options.scope];
for(var i=0;
i<drop.length;
i++){if(drop[i]==this){drop.splice(i,1)
}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");
return this
},_setOption:function(key,value){if(key=="accept"){this.accept=$.isFunction(value)?value:function(d){return d.is(value)
}
}$.Widget.prototype._setOption.apply(this,arguments)
},_activate:function(event){var draggable=$.ui.ddmanager.current;
if(this.options.activeClass){this.element.addClass(this.options.activeClass)
}(draggable&&this._trigger("activate",event,this.ui(draggable)))
},_deactivate:function(event){var draggable=$.ui.ddmanager.current;
if(this.options.activeClass){this.element.removeClass(this.options.activeClass)
}(draggable&&this._trigger("deactivate",event,this.ui(draggable)))
},_over:function(event){var draggable=$.ui.ddmanager.current;
if(!draggable||(draggable.currentItem||draggable.element)[0]==this.element[0]){return
}if(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)
}this._trigger("over",event,this.ui(draggable))
}},_out:function(event){var draggable=$.ui.ddmanager.current;
if(!draggable||(draggable.currentItem||draggable.element)[0]==this.element[0]){return
}if(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)
}this._trigger("out",event,this.ui(draggable))
}},_drop:function(event,custom){var draggable=custom||$.ui.ddmanager.current;
if(!draggable||(draggable.currentItem||draggable.element)[0]==this.element[0]){return false
}var childrenIntersection=false;
this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var inst=$.data(this,"droppable");
if(inst.options.greedy&&!inst.options.disabled&&inst.options.scope==draggable.options.scope&&inst.accept.call(inst.element[0],(draggable.currentItem||draggable.element))&&$.ui.intersect(draggable,$.extend(inst,{offset:inst.element.offset()}),inst.options.tolerance)){childrenIntersection=true;
return false
}});
if(childrenIntersection){return false
}if(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)
}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)
}this._trigger("drop",event,this.ui(draggable));
return this.element
}return false
},ui:function(c){return{draggable:(c.currentItem||c.element),helper:c.helper,position:c.position,offset:c.positionAbs}
}});
$.extend($.ui.droppable,{version:"1.8.16"});
$.ui.intersect=function(draggable,droppable,toleranceMode){if(!droppable.offset){return false
}var x1=(draggable.positionAbs||draggable.position.absolute).left,x2=x1+draggable.helperProportions.width,y1=(draggable.positionAbs||draggable.position.absolute).top,y2=y1+draggable.helperProportions.height;
var l=droppable.offset.left,r=l+droppable.proportions.width,t=droppable.offset.top,b=t+droppable.proportions.height;
switch(toleranceMode){case"fit":return(l<=x1&&x2<=r&&t<=y1&&y2<=b);
break;
case"intersect":return(l<x1+(draggable.helperProportions.width/2)&&x2-(draggable.helperProportions.width/2)<r&&t<y1+(draggable.helperProportions.height/2)&&y2-(draggable.helperProportions.height/2)<b);
break;
case"pointer":var draggableLeft=((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left),draggableTop=((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top),isOver=$.ui.isOver(draggableTop,draggableLeft,t,l,droppable.proportions.height,droppable.proportions.width);
return isOver;
break;
case"touch":return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));
break;
default:return false;
break
}};
$.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,event){var m=$.ui.ddmanager.droppables[t.options.scope]||[];
var type=event?event.type:null;
var list=(t.currentItem||t.element).find(":data(droppable)").andSelf();
droppablesLoop:for(var i=0;
i<m.length;
i++){if(m[i].options.disabled||(t&&!m[i].accept.call(m[i].element[0],(t.currentItem||t.element)))){continue
}for(var j=0;
j<list.length;
j++){if(list[j]==m[i].element[0]){m[i].proportions.height=0;
continue droppablesLoop
}}m[i].visible=m[i].element.css("display")!="none";
if(!m[i].visible){continue
}if(type=="mousedown"){m[i]._activate.call(m[i],event)
}m[i].offset=m[i].element.offset();
m[i].proportions={width:m[i].element[0].offsetWidth,height:m[i].element[0].offsetHeight}
}},drop:function(draggable,event){var dropped=false;
$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){if(!this.options){return
}if(!this.options.disabled&&this.visible&&$.ui.intersect(draggable,this,this.options.tolerance)){dropped=dropped||this._drop.call(this,event)
}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this.isout=1;
this.isover=0;
this._deactivate.call(this,event)
}});
return dropped
},dragStart:function(draggable,event){draggable.element.parents(":not(body,html)").bind("scroll.droppable",function(){if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event)
}})
},drag:function(draggable,event){if(draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event)
}$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return
}var intersects=$.ui.intersect(draggable,this,this.options.tolerance);
var c=!intersects&&this.isover==1?"isout":(intersects&&this.isover==0?"isover":null);
if(!c){return
}var parentInstance;
if(this.options.greedy){var parent=this.element.parents(":data(droppable):eq(0)");
if(parent.length){parentInstance=$.data(parent[0],"droppable");
parentInstance.greedyChild=(c=="isover"?1:0)
}}if(parentInstance&&c=="isover"){parentInstance.isover=0;
parentInstance.isout=1;
parentInstance._out.call(parentInstance,event)
}this[c]=1;
this[c=="isout"?"isover":"isout"]=0;
this[c=="isover"?"_over":"_out"].call(this,event);
if(parentInstance&&c=="isout"){parentInstance.isout=0;
parentInstance.isover=1;
parentInstance._over.call(parentInstance,event)
}})
},dragStop:function(draggable,event){draggable.element.parents(":not(body,html)").unbind("scroll.droppable");
if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event)
}}}
})(jQuery);
(function($,undefined){$.widget("ui.resizable",$.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var self=this,o=this.options;
this.element.addClass("ui-resizable");
$.extend(this,{_aspectRatio:!!(o.aspectRatio),aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null});
if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&$.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})
}this.element.wrap($('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));
this.element=this.element.parent().data("resizable",this.element.data("resizable"));
this.elementIsWrapper=true;
this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});
this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});
this.originalResizeStyle=this.originalElement.css("resize");
this.originalElement.css("resize","none");
this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));
this.originalElement.css({margin:this.originalElement.css("margin")});
this._proportionallyResize()
}this.handles=o.handles||(!$(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});
if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"
}var n=this.handles.split(",");
this.handles={};
for(var i=0;
i<n.length;
i++){var handle=$.trim(n[i]),hname="ui-resizable-"+handle;
var axis=$('<div class="ui-resizable-handle '+hname+'"></div>');
if(/sw|se|ne|nw/.test(handle)){axis.css({zIndex:++o.zIndex})
}if("se"==handle){axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se")
}this.handles[handle]=".ui-resizable-"+handle;
this.element.append(axis)
}}this._renderAxis=function(target){target=target||this.element;
for(var i in this.handles){if(this.handles[i].constructor==String){this.handles[i]=$(this.handles[i],this.element).show()
}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var axis=$(this.handles[i],this.element),padWrapper=0;
padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();
var padPos=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");
target.css(padPos,padWrapper);
this._proportionallyResize()
}if(!$(this.handles[i]).length){continue
}}};
this._renderAxis(this.element);
this._handles=$(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!self.resizing){if(this.className){var axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)
}self.axis=axis&&axis[1]?axis[1]:"se"
}});
if(o.autoHide){this._handles.hide();
$(this.element).addClass("ui-resizable-autohide").hover(function(){if(o.disabled){return
}$(this).removeClass("ui-resizable-autohide");
self._handles.show()
},function(){if(o.disabled){return
}if(!self.resizing){$(this).addClass("ui-resizable-autohide");
self._handles.hide()
}})
}this._mouseInit()
},destroy:function(){this._mouseDestroy();
var _destroy=function(exp){$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()
};
if(this.elementIsWrapper){_destroy(this.element);
var wrapper=this.element;
wrapper.after(this.originalElement.css({position:wrapper.css("position"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css("top"),left:wrapper.css("left")})).remove()
}this.originalElement.css("resize",this.originalResizeStyle);
_destroy(this.originalElement);
return this
},_mouseCapture:function(event){var handle=false;
for(var i in this.handles){if($(this.handles[i])[0]==event.target){handle=true
}}return !this.options.disabled&&handle
},_mouseStart:function(event){var o=this.options,iniPos=this.element.position(),el=this.element;
this.resizing=true;
this.documentScroll={top:$(document).scrollTop(),left:$(document).scrollLeft()};
if(el.is(".ui-draggable")||(/absolute/).test(el.css("position"))){el.css({position:"absolute",top:iniPos.top,left:iniPos.left})
}if($.browser.opera&&(/relative/).test(el.css("position"))){el.css({position:"relative",top:"auto",left:"auto"})
}this._renderProxy();
var curleft=num(this.helper.css("left")),curtop=num(this.helper.css("top"));
if(o.containment){curleft+=$(o.containment).scrollLeft()||0;
curtop+=$(o.containment).scrollTop()||0
}this.offset=this.helper.offset();
this.position={left:curleft,top:curtop};
this.size=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};
this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};
this.originalPosition={left:curleft,top:curtop};
this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};
this.originalMousePosition={left:event.pageX,top:event.pageY};
this.aspectRatio=(typeof o.aspectRatio=="number")?o.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);
var cursor=$(".ui-resizable-"+this.axis).css("cursor");
$("body").css("cursor",cursor=="auto"?this.axis+"-resize":cursor);
el.addClass("ui-resizable-resizing");
this._propagate("start",event);
return true
},_mouseDrag:function(event){var el=this.helper,o=this.options,props={},self=this,smp=this.originalMousePosition,a=this.axis;
var dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0;
var trigger=this._change[a];
if(!trigger){return false
}var data=trigger.apply(this,[event,dx,dy]),ie6=$.browser.msie&&$.browser.version<7,csdif=this.sizeDiff;
this._updateVirtualBoundaries(event.shiftKey);
if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event)
}data=this._respectSize(data,event);
this._propagate("resize",event);
el.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});
if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()
}this._updateCache(data);
this._trigger("resize",event,this.ui());
return false
},_mouseStop:function(event){this.resizing=false;
var o=this.options,self=this;
if(this._helper){var pr=this._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:self.sizeDiff.height,soffsetw=ista?0:self.sizeDiff.width;
var s={width:(self.helper.width()-soffsetw),height:(self.helper.height()-soffseth)},left=(parseInt(self.element.css("left"),10)+(self.position.left-self.originalPosition.left))||null,top=(parseInt(self.element.css("top"),10)+(self.position.top-self.originalPosition.top))||null;
if(!o.animate){this.element.css($.extend(s,{top:top,left:left}))
}self.helper.height(self.size.height);
self.helper.width(self.size.width);
if(this._helper&&!o.animate){this._proportionallyResize()
}}$("body").css("cursor","auto");
this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",event);
if(this._helper){this.helper.remove()
}return false
},_updateVirtualBoundaries:function(forceAspectRatio){var o=this.options,pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b;
b={minWidth:isNumber(o.minWidth)?o.minWidth:0,maxWidth:isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:isNumber(o.minHeight)?o.minHeight:0,maxHeight:isNumber(o.maxHeight)?o.maxHeight:Infinity};
if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;
pMinHeight=b.minWidth/this.aspectRatio;
pMaxWidth=b.maxHeight*this.aspectRatio;
pMaxHeight=b.maxWidth/this.aspectRatio;
if(pMinWidth>b.minWidth){b.minWidth=pMinWidth
}if(pMinHeight>b.minHeight){b.minHeight=pMinHeight
}if(pMaxWidth<b.maxWidth){b.maxWidth=pMaxWidth
}if(pMaxHeight<b.maxHeight){b.maxHeight=pMaxHeight
}}this._vBoundaries=b
},_updateCache:function(data){var o=this.options;
this.offset=this.helper.offset();
if(isNumber(data.left)){this.position.left=data.left
}if(isNumber(data.top)){this.position.top=data.top
}if(isNumber(data.height)){this.size.height=data.height
}if(isNumber(data.width)){this.size.width=data.width
}},_updateRatio:function(data,event){var o=this.options,cpos=this.position,csize=this.size,a=this.axis;
if(isNumber(data.height)){data.width=(data.height*this.aspectRatio)
}else{if(isNumber(data.width)){data.height=(data.width/this.aspectRatio)
}}if(a=="sw"){data.left=cpos.left+(csize.width-data.width);
data.top=null
}if(a=="nw"){data.top=cpos.top+(csize.height-data.height);
data.left=cpos.left+(csize.width-data.width)
}return data
},_respectSize:function(data,event){var el=this.helper,o=this._vBoundaries,pRatio=this._aspectRatio||event.shiftKey,a=this.axis,ismaxw=isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),ismaxh=isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),isminw=isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),isminh=isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height);
if(isminw){data.width=o.minWidth
}if(isminh){data.height=o.minHeight
}if(ismaxw){data.width=o.maxWidth
}if(ismaxh){data.height=o.maxHeight
}var dw=this.originalPosition.left+this.originalSize.width,dh=this.position.top+this.size.height;
var cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);
if(isminw&&cw){data.left=dw-o.minWidth
}if(ismaxw&&cw){data.left=dw-o.maxWidth
}if(isminh&&ch){data.top=dh-o.minHeight
}if(ismaxh&&ch){data.top=dh-o.maxHeight
}var isNotwh=!data.width&&!data.height;
if(isNotwh&&!data.left&&data.top){data.top=null
}else{if(isNotwh&&!data.top&&data.left){data.left=null
}}return data
},_proportionallyResize:function(){var o=this.options;
if(!this._proportionallyResizeElements.length){return
}var element=this.helper||this.element;
for(var i=0;
i<this._proportionallyResizeElements.length;
i++){var prel=this._proportionallyResizeElements[i];
if(!this.borderDif){var b=[prel.css("borderTopWidth"),prel.css("borderRightWidth"),prel.css("borderBottomWidth"),prel.css("borderLeftWidth")],p=[prel.css("paddingTop"),prel.css("paddingRight"),prel.css("paddingBottom"),prel.css("paddingLeft")];
this.borderDif=$.map(b,function(v,i){var border=parseInt(v,10)||0,padding=parseInt(p[i],10)||0;
return border+padding
})
}if($.browser.msie&&!(!($(element).is(":hidden")||$(element).parents(":hidden").length))){continue
}prel.css({height:(element.height()-this.borderDif[0]-this.borderDif[2])||0,width:(element.width()-this.borderDif[1]-this.borderDif[3])||0})
}},_renderProxy:function(){var el=this.element,o=this.options;
this.elementOffset=el.offset();
if(this._helper){this.helper=this.helper||$('<div style="overflow:hidden;"></div>');
var ie6=$.browser.msie&&$.browser.version<7,ie6offset=(ie6?1:0),pxyoffset=(ie6?2:-1);
this.helper.addClass(this._helper).css({width:this.element.outerWidth()+pxyoffset,height:this.element.outerHeight()+pxyoffset,position:"absolute",left:this.elementOffset.left-ie6offset+"px",top:this.elementOffset.top-ie6offset+"px",zIndex:++o.zIndex});
this.helper.appendTo("body").disableSelection()
}else{this.helper=this.element
}},_change:{e:function(event,dx,dy){return{width:this.originalSize.width+dx}
},w:function(event,dx,dy){var o=this.options,cs=this.originalSize,sp=this.originalPosition;
return{left:sp.left+dx,width:cs.width-dx}
},n:function(event,dx,dy){var o=this.options,cs=this.originalSize,sp=this.originalPosition;
return{top:sp.top+dy,height:cs.height-dy}
},s:function(event,dx,dy){return{height:this.originalSize.height+dy}
},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))
},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))
},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))
},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))
}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);
(n!="resize"&&this._trigger(n,event,this.ui()))
},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}
}});
$.extend($.ui.resizable,{version:"1.8.16"});
$.ui.plugin.add("resizable","alsoResize",{start:function(event,ui){var self=$(this).data("resizable"),o=self.options;
var _store=function(exp){$(exp).each(function(){var el=$(this);
el.data("resizable-alsoresize",{width:parseInt(el.width(),10),height:parseInt(el.height(),10),left:parseInt(el.css("left"),10),top:parseInt(el.css("top"),10),position:el.css("position")})
})
};
if(typeof (o.alsoResize)=="object"&&!o.alsoResize.parentNode){if(o.alsoResize.length){o.alsoResize=o.alsoResize[0];
_store(o.alsoResize)
}else{$.each(o.alsoResize,function(exp){_store(exp)
})
}}else{_store(o.alsoResize)
}},resize:function(event,ui){var self=$(this).data("resizable"),o=self.options,os=self.originalSize,op=self.originalPosition;
var delta={height:(self.size.height-os.height)||0,width:(self.size.width-os.width)||0,top:(self.position.top-op.top)||0,left:(self.position.left-op.left)||0},_alsoResize=function(exp,c){$(exp).each(function(){var el=$(this),start=$(this).data("resizable-alsoresize"),style={},css=c&&c.length?c:el.parents(ui.originalElement[0]).length?["width","height"]:["width","height","top","left"];
$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);
if(sum&&sum>=0){style[prop]=sum||null
}});
if($.browser.opera&&/relative/.test(el.css("position"))){self._revertToRelativePosition=true;
el.css({position:"absolute",top:"auto",left:"auto"})
}el.css(style)
})
};
if(typeof (o.alsoResize)=="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp,c){_alsoResize(exp,c)
})
}else{_alsoResize(o.alsoResize)
}},stop:function(event,ui){var self=$(this).data("resizable"),o=self.options;
var _reset=function(exp){$(exp).each(function(){var el=$(this);
el.css({position:el.data("resizable-alsoresize").position})
})
};
if(self._revertToRelativePosition){self._revertToRelativePosition=false;
if(typeof (o.alsoResize)=="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp){_reset(exp)
})
}else{_reset(o.alsoResize)
}}$(this).removeData("resizable-alsoresize")
}});
$.ui.plugin.add("resizable","animate",{stop:function(event,ui){var self=$(this).data("resizable"),o=self.options;
var pr=self._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:self.sizeDiff.height,soffsetw=ista?0:self.sizeDiff.width;
var style={width:(self.size.width-soffsetw),height:(self.size.height-soffseth)},left=(parseInt(self.element.css("left"),10)+(self.position.left-self.originalPosition.left))||null,top=(parseInt(self.element.css("top"),10)+(self.position.top-self.originalPosition.top))||null;
self.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseInt(self.element.css("width"),10),height:parseInt(self.element.css("height"),10),top:parseInt(self.element.css("top"),10),left:parseInt(self.element.css("left"),10)};
if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height})
}self._updateCache(data);
self._propagate("resize",event)
}})
}});
$.ui.plugin.add("resizable","containment",{start:function(event,ui){var self=$(this).data("resizable"),o=self.options,el=self.element;
var oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;
if(!ce){return
}self.containerElement=$(ce);
if(/document/.test(oc)||oc==document){self.containerOffset={left:0,top:0};
self.containerPosition={left:0,top:0};
self.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight}
}else{var element=$(ce),p=[];
$(["Top","Right","Left","Bottom"]).each(function(i,name){p[i]=num(element.css("padding"+name))
});
self.containerOffset=element.offset();
self.containerPosition=element.position();
self.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};
var co=self.containerOffset,ch=self.containerSize.height,cw=self.containerSize.width,width=($.ui.hasScroll(ce,"left")?ce.scrollWidth:cw),height=($.ui.hasScroll(ce)?ce.scrollHeight:ch);
self.parentData={element:ce,left:co.left,top:co.top,width:width,height:height}
}},resize:function(event,ui){var self=$(this).data("resizable"),o=self.options,ps=self.containerSize,co=self.containerOffset,cs=self.size,cp=self.position,pRatio=self._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=self.containerElement;
if(ce[0]!=document&&(/static/).test(ce.css("position"))){cop=co
}if(cp.left<(self._helper?co.left:0)){self.size.width=self.size.width+(self._helper?(self.position.left-co.left):(self.position.left-cop.left));
if(pRatio){self.size.height=self.size.width/o.aspectRatio
}self.position.left=o.helper?co.left:0
}if(cp.top<(self._helper?co.top:0)){self.size.height=self.size.height+(self._helper?(self.position.top-co.top):self.position.top);
if(pRatio){self.size.width=self.size.height*o.aspectRatio
}self.position.top=self._helper?co.top:0
}self.offset.left=self.parentData.left+self.position.left;
self.offset.top=self.parentData.top+self.position.top;
var woset=Math.abs((self._helper?self.offset.left-cop.left:(self.offset.left-cop.left))+self.sizeDiff.width),hoset=Math.abs((self._helper?self.offset.top-cop.top:(self.offset.top-co.top))+self.sizeDiff.height);
var isParent=self.containerElement.get(0)==self.element.parent().get(0),isOffsetRelative=/relative|absolute/.test(self.containerElement.css("position"));
if(isParent&&isOffsetRelative){woset-=self.parentData.left
}if(woset+self.size.width>=self.parentData.width){self.size.width=self.parentData.width-woset;
if(pRatio){self.size.height=self.size.width/self.aspectRatio
}}if(hoset+self.size.height>=self.parentData.height){self.size.height=self.parentData.height-hoset;
if(pRatio){self.size.width=self.size.height*self.aspectRatio
}}},stop:function(event,ui){var self=$(this).data("resizable"),o=self.options,cp=self.position,co=self.containerOffset,cop=self.containerPosition,ce=self.containerElement;
var helper=$(self.helper),ho=helper.offset(),w=helper.outerWidth()-self.sizeDiff.width,h=helper.outerHeight()-self.sizeDiff.height;
if(self._helper&&!o.animate&&(/relative/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})
}if(self._helper&&!o.animate&&(/static/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})
}}});
$.ui.plugin.add("resizable","ghost",{start:function(event,ui){var self=$(this).data("resizable"),o=self.options,cs=self.size;
self.ghost=self.originalElement.clone();
self.ghost.css({opacity:0.25,display:"block",position:"relative",height:cs.height,width:cs.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof o.ghost=="string"?o.ghost:"");
self.ghost.appendTo(self.helper)
},resize:function(event,ui){var self=$(this).data("resizable"),o=self.options;
if(self.ghost){self.ghost.css({position:"relative",height:self.size.height,width:self.size.width})
}},stop:function(event,ui){var self=$(this).data("resizable"),o=self.options;
if(self.ghost&&self.helper){self.helper.get(0).removeChild(self.ghost.get(0))
}}});
$.ui.plugin.add("resizable","grid",{resize:function(event,ui){var self=$(this).data("resizable"),o=self.options,cs=self.size,os=self.originalSize,op=self.originalPosition,a=self.axis,ratio=o._aspectRatio||event.shiftKey;
o.grid=typeof o.grid=="number"?[o.grid,o.grid]:o.grid;
var ox=Math.round((cs.width-os.width)/(o.grid[0]||1))*(o.grid[0]||1),oy=Math.round((cs.height-os.height)/(o.grid[1]||1))*(o.grid[1]||1);
if(/^(se|s|e)$/.test(a)){self.size.width=os.width+ox;
self.size.height=os.height+oy
}else{if(/^(ne)$/.test(a)){self.size.width=os.width+ox;
self.size.height=os.height+oy;
self.position.top=op.top-oy
}else{if(/^(sw)$/.test(a)){self.size.width=os.width+ox;
self.size.height=os.height+oy;
self.position.left=op.left-ox
}else{self.size.width=os.width+ox;
self.size.height=os.height+oy;
self.position.top=op.top-oy;
self.position.left=op.left-ox
}}}}});
var num=function(v){return parseInt(v,10)||0
};
var isNumber=function(value){return !isNaN(parseInt(value,10))
}
})(jQuery);
(function($,undefined){$.widget("ui.selectable",$.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var self=this;
this.element.addClass("ui-selectable");
this.dragged=false;
var selectees;
this.refresh=function(){selectees=$(self.options.filter,self.element[0]);
selectees.each(function(){var $this=$(this);
var pos=$this.offset();
$.data(this,"selectable-item",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass("ui-selected"),selecting:$this.hasClass("ui-selecting"),unselecting:$this.hasClass("ui-unselecting")})
})
};
this.refresh();
this.selectees=selectees.addClass("ui-selectee");
this._mouseInit();
this.helper=$("<div class='ui-selectable-helper'></div>")
},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");
this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");
this._mouseDestroy();
return this
},_mouseStart:function(event){var self=this;
this.opos=[event.pageX,event.pageY];
if(this.options.disabled){return
}var options=this.options;
this.selectees=$(options.filter,this.element[0]);
this._trigger("start",event);
$(options.appendTo).append(this.helper);
this.helper.css({left:event.clientX,top:event.clientY,width:0,height:0});
if(options.autoRefresh){this.refresh()
}this.selectees.filter(".ui-selected").each(function(){var selectee=$.data(this,"selectable-item");
selectee.startselected=true;
if(!event.metaKey){selectee.$element.removeClass("ui-selected");
selectee.selected=false;
selectee.$element.addClass("ui-unselecting");
selectee.unselecting=true;
self._trigger("unselecting",event,{unselecting:selectee.element})
}});
$(event.target).parents().andSelf().each(function(){var selectee=$.data(this,"selectable-item");
if(selectee){var doSelect=!event.metaKey||!selectee.$element.hasClass("ui-selected");
selectee.$element.removeClass(doSelect?"ui-unselecting":"ui-selected").addClass(doSelect?"ui-selecting":"ui-unselecting");
selectee.unselecting=!doSelect;
selectee.selecting=doSelect;
selectee.selected=doSelect;
if(doSelect){self._trigger("selecting",event,{selecting:selectee.element})
}else{self._trigger("unselecting",event,{unselecting:selectee.element})
}return false
}})
},_mouseDrag:function(event){var self=this;
this.dragged=true;
if(this.options.disabled){return
}var options=this.options;
var x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;
if(x1>x2){var tmp=x2;
x2=x1;
x1=tmp
}if(y1>y2){var tmp=y2;
y2=y1;
y1=tmp
}this.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});
this.selectees.each(function(){var selectee=$.data(this,"selectable-item");
if(!selectee||selectee.element==self.element[0]){return
}var hit=false;
if(options.tolerance=="touch"){hit=(!(selectee.left>x2||selectee.right<x1||selectee.top>y2||selectee.bottom<y1))
}else{if(options.tolerance=="fit"){hit=(selectee.left>x1&&selectee.right<x2&&selectee.top>y1&&selectee.bottom<y2)
}}if(hit){if(selectee.selected){selectee.$element.removeClass("ui-selected");
selectee.selected=false
}if(selectee.unselecting){selectee.$element.removeClass("ui-unselecting");
selectee.unselecting=false
}if(!selectee.selecting){selectee.$element.addClass("ui-selecting");
selectee.selecting=true;
self._trigger("selecting",event,{selecting:selectee.element})
}}else{if(selectee.selecting){if(event.metaKey&&selectee.startselected){selectee.$element.removeClass("ui-selecting");
selectee.selecting=false;
selectee.$element.addClass("ui-selected");
selectee.selected=true
}else{selectee.$element.removeClass("ui-selecting");
selectee.selecting=false;
if(selectee.startselected){selectee.$element.addClass("ui-unselecting");
selectee.unselecting=true
}self._trigger("unselecting",event,{unselecting:selectee.element})
}}if(selectee.selected){if(!event.metaKey&&!selectee.startselected){selectee.$element.removeClass("ui-selected");
selectee.selected=false;
selectee.$element.addClass("ui-unselecting");
selectee.unselecting=true;
self._trigger("unselecting",event,{unselecting:selectee.element})
}}}});
return false
},_mouseStop:function(event){var self=this;
this.dragged=false;
var options=this.options;
$(".ui-unselecting",this.element[0]).each(function(){var selectee=$.data(this,"selectable-item");
selectee.$element.removeClass("ui-unselecting");
selectee.unselecting=false;
selectee.startselected=false;
self._trigger("unselected",event,{unselected:selectee.element})
});
$(".ui-selecting",this.element[0]).each(function(){var selectee=$.data(this,"selectable-item");
selectee.$element.removeClass("ui-selecting").addClass("ui-selected");
selectee.selecting=false;
selectee.selected=true;
selectee.startselected=true;
self._trigger("selected",event,{selected:selectee.element})
});
this._trigger("stop",event);
this.helper.remove();
return false
}});
$.extend($.ui.selectable,{version:"1.8.16"})
})(jQuery);
(function($,undefined){$.widget("ui.sortable",$.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var o=this.options;
this.containerCache={};
this.element.addClass("ui-sortable");
this.refresh();
this.floating=this.items.length?o.axis==="x"||(/left|right/).test(this.items[0].item.css("float"))||(/inline|table-cell/).test(this.items[0].item.css("display")):false;
this.offset=this.element.offset();
this._mouseInit()
},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
this._mouseDestroy();
for(var i=this.items.length-1;
i>=0;
i--){this.items[i].item.removeData("sortable-item")
}return this
},_setOption:function(key,value){if(key==="disabled"){this.options[key]=value;
this.widget()[value?"addClass":"removeClass"]("ui-sortable-disabled")
}else{$.Widget.prototype._setOption.apply(this,arguments)
}},_mouseCapture:function(event,overrideHandle){if(this.reverting){return false
}if(this.options.disabled||this.options.type=="static"){return false
}this._refreshItems(event);
var currentItem=null,self=this,nodes=$(event.target).parents().each(function(){if($.data(this,"sortable-item")==self){currentItem=$(this);
return false
}});
if($.data(event.target,"sortable-item")==self){currentItem=$(event.target)
}if(!currentItem){return false
}if(this.options.handle&&!overrideHandle){var validHandle=false;
$(this.options.handle,currentItem).find("*").andSelf().each(function(){if(this==event.target){validHandle=true
}});
if(!validHandle){return false
}}this.currentItem=currentItem;
this._removeCurrentsFromItems();
return true
},_mouseStart:function(event,overrideHandle,noActivation){var o=this.options,self=this;
this.currentContainer=this;
this.refreshPositions();
this.helper=this._createHelper(event);
this._cacheHelperProportions();
this._cacheMargins();
this.scrollParent=this.helper.scrollParent();
this.offset=this.currentItem.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
this.helper.css("position","absolute");
this.cssPosition=this.helper.css("position");
$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(event);
this.originalPageX=event.pageX;
this.originalPageY=event.pageY;
(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));
this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()
}this._createPlaceholder();
if(o.containment){this._setContainment()
}if(o.cursor){if($("body").css("cursor")){this._storedCursor=$("body").css("cursor")
}$("body").css("cursor",o.cursor)
}if(o.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")
}this.helper.css("opacity",o.opacity)
}if(o.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")
}this.helper.css("zIndex",o.zIndex)
}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()
}this._trigger("start",event,this._uiHash());
if(!this._preserveHelperProportions){this._cacheHelperProportions()
}if(!noActivation){for(var i=this.containers.length-1;
i>=0;
i--){this.containers[i]._trigger("activate",event,self._uiHash(this))
}}if($.ui.ddmanager){$.ui.ddmanager.current=this
}if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)
}this.dragging=true;
this.helper.addClass("ui-sortable-helper");
this._mouseDrag(event);
return true
},_mouseDrag:function(event){this.position=this._generatePosition(event);
this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs
}if(this.options.scroll){var o=this.options,scrolled=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-event.pageY<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop+o.scrollSpeed
}else{if(event.pageY-this.overflowOffset.top<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop-o.scrollSpeed
}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-event.pageX<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft+o.scrollSpeed
}else{if(event.pageX-this.overflowOffset.left<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft-o.scrollSpeed
}}}else{if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed)
}else{if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed)
}}if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed)
}else{if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed)
}}}if(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)
}}this.positionAbs=this._convertPositionTo("absolute");
if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"
}for(var i=this.items.length-1;
i>=0;
i--){var item=this.items[i],itemElement=item.item[0],intersection=this._intersectsWithPointer(item);
if(!intersection){continue
}if(itemElement!=this.currentItem[0]&&this.placeholder[intersection==1?"next":"prev"]()[0]!=itemElement&&!$.ui.contains(this.placeholder[0],itemElement)&&(this.options.type=="semi-dynamic"?!$.ui.contains(this.element[0],itemElement):true)){this.direction=intersection==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(item)){this._rearrange(event,item)
}else{break
}this._trigger("change",event,this._uiHash());
break
}}this._contactContainers(event);
if($.ui.ddmanager){$.ui.ddmanager.drag(this,event)
}this._trigger("sort",event,this._uiHash());
this.lastPositionAbs=this.positionAbs;
return false
},_mouseStop:function(event,noPropagation){if(!event){return
}if($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,event)
}if(this.options.revert){var self=this;
var cur=self.placeholder.offset();
self.reverting=true;
$(this.helper).animate({left:cur.left-this.offset.parent.left-self.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:cur.top-this.offset.parent.top-self.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){self._clear(event)
})
}else{this._clear(event,noPropagation)
}return false
},cancel:function(){var self=this;
if(this.dragging){this._mouseUp({target:null});
if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
}else{this.currentItem.show()
}for(var i=this.containers.length-1;
i>=0;
i--){this.containers[i]._trigger("deactivate",null,self._uiHash(this));
if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",null,self._uiHash(this));
this.containers[i].containerCache.over=0
}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])
}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()
}$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});
if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem)
}else{$(this.domPosition.parent).prepend(this.currentItem)
}}return this
},serialize:function(o){var items=this._getItemsAsjQuery(o&&o.connected);
var str=[];
o=o||{};
$(items).each(function(){var res=($(o.item||this).attr(o.attribute||"id")||"").match(o.expression||(/(.+)[-=_](.+)/));
if(res){str.push((o.key||res[1]+"[]")+"="+(o.key&&o.expression?res[1]:res[2]))
}});
if(!str.length&&o.key){str.push(o.key+"=")
}return str.join("&")
},toArray:function(o){var items=this._getItemsAsjQuery(o&&o.connected);
var ret=[];
o=o||{};
items.each(function(){ret.push($(o.item||this).attr(o.attribute||"id")||"")
});
return ret
},_intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height;
var l=item.left,r=l+item.width,t=item.top,b=t+item.height;
var dyClick=this.offset.click.top,dxClick=this.offset.click.left;
var isOverElement=(y1+dyClick)>t&&(y1+dyClick)<b&&(x1+dxClick)>l&&(x1+dxClick)<r;
if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>item[this.floating?"width":"height"])){return isOverElement
}else{return(l<x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)<r&&t<y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)<b)
}},_intersectsWithPointer:function(item){var isOverElementHeight=$.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,item.top,item.height),isOverElementWidth=$.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,item.left,item.width),isOverElement=isOverElementHeight&&isOverElementWidth,verticalDirection=this._getDragVerticalDirection(),horizontalDirection=this._getDragHorizontalDirection();
if(!isOverElement){return false
}return this.floating?(((horizontalDirection&&horizontalDirection=="right")||verticalDirection=="down")?2:1):(verticalDirection&&(verticalDirection=="down"?2:1))
},_intersectsWithSides:function(item){var isOverBottomHalf=$.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,item.top+(item.height/2),item.height),isOverRightHalf=$.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,item.left+(item.width/2),item.width),verticalDirection=this._getDragVerticalDirection(),horizontalDirection=this._getDragHorizontalDirection();
if(this.floating&&horizontalDirection){return((horizontalDirection=="right"&&isOverRightHalf)||(horizontalDirection=="left"&&!isOverRightHalf))
}else{return verticalDirection&&((verticalDirection=="down"&&isOverBottomHalf)||(verticalDirection=="up"&&!isOverBottomHalf))
}},_getDragVerticalDirection:function(){var delta=this.positionAbs.top-this.lastPositionAbs.top;
return delta!=0&&(delta>0?"down":"up")
},_getDragHorizontalDirection:function(){var delta=this.positionAbs.left-this.lastPositionAbs.left;
return delta!=0&&(delta>0?"right":"left")
},refresh:function(event){this._refreshItems(event);
this.refreshPositions();
return this
},_connectWith:function(){var options=this.options;
return options.connectWith.constructor==String?[options.connectWith]:options.connectWith
},_getItemsAsjQuery:function(connected){var self=this;
var items=[];
var queries=[];
var connectWith=this._connectWith();
if(connectWith&&connected){for(var i=connectWith.length-1;
i>=0;
i--){var cur=$(connectWith[i]);
for(var j=cur.length-1;
j>=0;
j--){var inst=$.data(cur[j],"sortable");
if(inst&&inst!=this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items,inst.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),inst])
}}}}queries.push([$.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);
for(var i=queries.length-1;
i>=0;
i--){queries[i][0].each(function(){items.push(this)
})
}return $(items)
},_removeCurrentsFromItems:function(){var list=this.currentItem.find(":data(sortable-item)");
for(var i=0;
i<this.items.length;
i++){for(var j=0;
j<list.length;
j++){if(list[j]==this.items[i].item[0]){this.items.splice(i,1)
}}}},_refreshItems:function(event){this.items=[];
this.containers=[this];
var items=this.items;
var self=this;
var queries=[[$.isFunction(this.options.items)?this.options.items.call(this.element[0],event,{item:this.currentItem}):$(this.options.items,this.element),this]];
var connectWith=this._connectWith();
if(connectWith){for(var i=connectWith.length-1;
i>=0;
i--){var cur=$(connectWith[i]);
for(var j=cur.length-1;
j>=0;
j--){var inst=$.data(cur[j],"sortable");
if(inst&&inst!=this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element[0],event,{item:this.currentItem}):$(inst.options.items,inst.element),inst]);
this.containers.push(inst)
}}}}for(var i=queries.length-1;
i>=0;
i--){var targetData=queries[i][1];
var _queries=queries[i][0];
for(var j=0,queriesLength=_queries.length;
j<queriesLength;
j++){var item=$(_queries[j]);
item.data("sortable-item",targetData);
items.push({item:item,instance:targetData,width:0,height:0,left:0,top:0})
}}},refreshPositions:function(fast){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()
}for(var i=this.items.length-1;
i>=0;
i--){var item=this.items[i];
if(item.instance!=this.currentContainer&&this.currentContainer&&item.item[0]!=this.currentItem[0]){continue
}var t=this.options.toleranceElement?$(this.options.toleranceElement,item.item):item.item;
if(!fast){item.width=t.outerWidth();
item.height=t.outerHeight()
}var p=t.offset();
item.left=p.left;
item.top=p.top
}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)
}else{for(var i=this.containers.length-1;
i>=0;
i--){var p=this.containers[i].element.offset();
this.containers[i].containerCache.left=p.left;
this.containers[i].containerCache.top=p.top;
this.containers[i].containerCache.width=this.containers[i].element.outerWidth();
this.containers[i].containerCache.height=this.containers[i].element.outerHeight()
}}return this
},_createPlaceholder:function(that){var self=that||this,o=self.options;
if(!o.placeholder||o.placeholder.constructor==String){var className=o.placeholder;
o.placeholder={element:function(){var el=$(document.createElement(self.currentItem[0].nodeName)).addClass(className||self.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
if(!className){el.style.visibility="hidden"
}return el
},update:function(container,p){if(className&&!o.forcePlaceholderSize){return
}if(!p.height()){p.height(self.currentItem.innerHeight()-parseInt(self.currentItem.css("paddingTop")||0,10)-parseInt(self.currentItem.css("paddingBottom")||0,10))
}if(!p.width()){p.width(self.currentItem.innerWidth()-parseInt(self.currentItem.css("paddingLeft")||0,10)-parseInt(self.currentItem.css("paddingRight")||0,10))
}}}
}self.placeholder=$(o.placeholder.element.call(self.element,self.currentItem));
self.currentItem.after(self.placeholder);
o.placeholder.update(self,self.placeholder)
},_contactContainers:function(event){var innermostContainer=null,innermostIndex=null;
for(var i=this.containers.length-1;
i>=0;
i--){if($.ui.contains(this.currentItem[0],this.containers[i].element[0])){continue
}if(this._intersectsWith(this.containers[i].containerCache)){if(innermostContainer&&$.ui.contains(this.containers[i].element[0],innermostContainer.element[0])){continue
}innermostContainer=this.containers[i];
innermostIndex=i
}else{if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",event,this._uiHash(this));
this.containers[i].containerCache.over=0
}}}if(!innermostContainer){return
}if(this.containers.length===1){this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));
this.containers[innermostIndex].containerCache.over=1
}else{if(this.currentContainer!=this.containers[innermostIndex]){var dist=10000;
var itemWithLeastDistance=null;
var base=this.positionAbs[this.containers[innermostIndex].floating?"left":"top"];
for(var j=this.items.length-1;
j>=0;
j--){if(!$.ui.contains(this.containers[innermostIndex].element[0],this.items[j].item[0])){continue
}var cur=this.items[j][this.containers[innermostIndex].floating?"left":"top"];
if(Math.abs(cur-base)<dist){dist=Math.abs(cur-base);
itemWithLeastDistance=this.items[j]
}}if(!itemWithLeastDistance&&!this.options.dropOnEmpty){return
}this.currentContainer=this.containers[innermostIndex];
itemWithLeastDistance?this._rearrange(event,itemWithLeastDistance,null,true):this._rearrange(event,null,this.containers[innermostIndex].element,true);
this._trigger("change",event,this._uiHash());
this.containers[innermostIndex]._trigger("change",event,this._uiHash(this));
this.options.placeholder.update(this.currentContainer,this.placeholder);
this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));
this.containers[innermostIndex].containerCache.over=1
}}},_createHelper:function(event){var o=this.options;
var helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event,this.currentItem])):(o.helper=="clone"?this.currentItem.clone():this.currentItem);
if(!helper.parents("body").length){$(o.appendTo!="parent"?o.appendTo:this.currentItem[0].parentNode)[0].appendChild(helper[0])
}if(helper[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}
}if(helper[0].style.width==""||o.forceHelperSize){helper.width(this.currentItem.width())
}if(helper[0].style.height==""||o.forceHelperSize){helper.height(this.currentItem.height())
}return helper
},_adjustOffsetFromHelper:function(obj){if(typeof obj=="string"){obj=obj.split(" ")
}if($.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0}
}if("left" in obj){this.offset.click.left=obj.left+this.margins.left
}if("right" in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left
}if("top" in obj){this.offset.click.top=obj.top+this.margins.top
}if("bottom" in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var po=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();
po.top+=this.scrollParent.scrollTop()
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&$.browser.msie)){po={top:0,left:0}
}return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var p=this.currentItem.position();
return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{return{top:0,left:0}
}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}
},_setContainment:function(){var o=this.options;
if(o.containment=="parent"){o.containment=this.helper[0].parentNode
}if(o.containment=="document"||o.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,$(o.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,($(o.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!(/^(document|window|parent)$/).test(o.containment)){var ce=$(o.containment)[0];
var co=$(o.containment).offset();
var over=($(ce).css("overflow")!="hidden");
this.containment=[co.left+(parseInt($(ce).css("borderLeftWidth"),10)||0)+(parseInt($(ce).css("paddingLeft"),10)||0)-this.margins.left,co.top+(parseInt($(ce).css("borderTopWidth"),10)||0)+(parseInt($(ce).css("paddingTop"),10)||0)-this.margins.top,co.left+(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"),10)||0)-(parseInt($(ce).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,co.top+(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"),10)||0)-(parseInt($(ce).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]
}},_convertPositionTo:function(d,pos){if(!pos){pos=this.position
}var mod=d=="absolute"?1:-1;
var o=this.options,scroll=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);
return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))}
},_generatePosition:function(event){var o=this.options,scroll=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()
}var pageX=event.pageX;
var pageY=event.pageY;
if(this.originalPosition){if(this.containment){if(event.pageX-this.offset.click.left<this.containment[0]){pageX=this.containment[0]+this.offset.click.left
}if(event.pageY-this.offset.click.top<this.containment[1]){pageY=this.containment[1]+this.offset.click.top
}if(event.pageX-this.offset.click.left>this.containment[2]){pageX=this.containment[2]+this.offset.click.left
}if(event.pageY-this.offset.click.top>this.containment[3]){pageY=this.containment[3]+this.offset.click.top
}}if(o.grid){var top=this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1];
pageY=this.containment?(!(top-this.offset.click.top<this.containment[1]||top-this.offset.click.top>this.containment[3])?top:(!(top-this.offset.click.top<this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;
var left=this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0];
pageX=this.containment?(!(left-this.offset.click.left<this.containment[0]||left-this.offset.click.left>this.containment[2])?left:(!(left-this.offset.click.left<this.containment[0])?left-o.grid[0]:left+o.grid[0])):left
}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))}
},_rearrange:function(event,i,a,hardRefresh){a?a[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?i.item[0]:i.item[0].nextSibling));
this.counter=this.counter?++this.counter:1;
var self=this,counter=this.counter;
window.setTimeout(function(){if(counter==self.counter){self.refreshPositions(!hardRefresh)
}},0)
},_clear:function(event,noPropagation){this.reverting=false;
var delayedTriggers=[],self=this;
if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)
}this._noFinalSort=null;
if(this.helper[0]==this.currentItem[0]){for(var i in this._storedCSS){if(this._storedCSS[i]=="auto"||this._storedCSS[i]=="static"){this._storedCSS[i]=""
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
}else{this.currentItem.show()
}if(this.fromOutside&&!noPropagation){delayedTriggers.push(function(event){this._trigger("receive",event,this._uiHash(this.fromOutside))
})
}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!noPropagation){delayedTriggers.push(function(event){this._trigger("update",event,this._uiHash())
})
}if(!$.ui.contains(this.element[0],this.currentItem[0])){if(!noPropagation){delayedTriggers.push(function(event){this._trigger("remove",event,this._uiHash())
})
}for(var i=this.containers.length-1;
i>=0;
i--){if($.ui.contains(this.containers[i].element[0],this.currentItem[0])&&!noPropagation){delayedTriggers.push((function(c){return function(event){c._trigger("receive",event,this._uiHash(this))
}
}).call(this,this.containers[i]));
delayedTriggers.push((function(c){return function(event){c._trigger("update",event,this._uiHash(this))
}
}).call(this,this.containers[i]))
}}}for(var i=this.containers.length-1;
i>=0;
i--){if(!noPropagation){delayedTriggers.push((function(c){return function(event){c._trigger("deactivate",event,this._uiHash(this))
}
}).call(this,this.containers[i]))
}if(this.containers[i].containerCache.over){delayedTriggers.push((function(c){return function(event){c._trigger("out",event,this._uiHash(this))
}
}).call(this,this.containers[i]));
this.containers[i].containerCache.over=0
}}if(this._storedCursor){$("body").css("cursor",this._storedCursor)
}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)
}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)
}this.dragging=false;
if(this.cancelHelperRemoval){if(!noPropagation){this._trigger("beforeStop",event,this._uiHash());
for(var i=0;
i<delayedTriggers.length;
i++){delayedTriggers[i].call(this,event)
}this._trigger("stop",event,this._uiHash())
}return false
}if(!noPropagation){this._trigger("beforeStop",event,this._uiHash())
}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
if(this.helper[0]!=this.currentItem[0]){this.helper.remove()
}this.helper=null;
if(!noPropagation){for(var i=0;
i<delayedTriggers.length;
i++){delayedTriggers[i].call(this,event)
}this._trigger("stop",event,this._uiHash())
}this.fromOutside=false;
return true
},_trigger:function(){if($.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()
}},_uiHash:function(inst){var self=inst||this;
return{helper:self.helper,placeholder:self.placeholder||$([]),position:self.position,originalPosition:self.originalPosition,offset:self.positionAbs,item:self.currentItem,sender:inst?inst.element:null}
}});
$.extend($.ui.sortable,{version:"1.8.16"})
})(jQuery);
(function($,undefined){$.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()
}},_create:function(){var self=this,options=self.options;
self.running=0;
self.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
self.headers=self.element.find(options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(options.disabled){return
}$(this).addClass("ui-state-hover")
}).bind("mouseleave.accordion",function(){if(options.disabled){return
}$(this).removeClass("ui-state-hover")
}).bind("focus.accordion",function(){if(options.disabled){return
}$(this).addClass("ui-state-focus")
}).bind("blur.accordion",function(){if(options.disabled){return
}$(this).removeClass("ui-state-focus")
});
self.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(options.navigation){var current=self.element.find("a").filter(options.navigationFilter).eq(0);
if(current.length){var header=current.closest(".ui-accordion-header");
if(header.length){self.active=header
}else{self.active=current.closest(".ui-accordion-content").prev()
}}}self.active=self._findActive(self.active||options.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
self.active.next().addClass("ui-accordion-content-active");
self._createIcons();
self.resize();
self.element.attr("role","tablist");
self.headers.attr("role","tab").bind("keydown.accordion",function(event){return self._keydown(event)
}).next().attr("role","tabpanel");
self.headers.not(self.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();
if(!self.active.length){self.headers.eq(0).attr("tabIndex",0)
}else{self.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0})
}if(!$.browser.safari){self.headers.find("a").attr("tabIndex",-1)
}if(options.event){self.headers.bind(options.event.split(" ").join(".accordion ")+".accordion",function(event){self._clickHandler.call(self,event,this);
event.preventDefault()
})
}},_createIcons:function(){var options=this.options;
if(options.icons){$("<span></span>").addClass("ui-icon "+options.icons.header).prependTo(this.headers);
this.active.children(".ui-icon").toggleClass(options.icons.header).toggleClass(options.icons.headerSelected);
this.element.addClass("ui-accordion-icons")
}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();
this.element.removeClass("ui-accordion-icons")
},destroy:function(){var options=this.options;
this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");
this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");
this._destroyIcons();
var contents=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");
if(options.autoHeight||options.fillHeight){contents.css("height","")
}return $.Widget.prototype.destroy.call(this)
},_setOption:function(key,value){$.Widget.prototype._setOption.apply(this,arguments);
if(key=="active"){this.activate(value)
}if(key=="icons"){this._destroyIcons();
if(value){this._createIcons()
}}if(key=="disabled"){this.headers.add(this.headers.next())[value?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")
}},_keydown:function(event){if(this.options.disabled||event.altKey||event.ctrlKey){return
}var keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;
switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];
break;
case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];
break;
case keyCode.SPACE:case keyCode.ENTER:this._clickHandler({target:event.target},event.target);
event.preventDefault()
}if(toFocus){$(event.target).attr("tabIndex",-1);
$(toFocus).attr("tabIndex",0);
toFocus.focus();
return false
}return true
},resize:function(){var options=this.options,maxHeight;
if(options.fillSpace){if($.browser.msie){var defOverflow=this.element.parent().css("overflow");
this.element.parent().css("overflow","hidden")
}maxHeight=this.element.parent().height();
if($.browser.msie){this.element.parent().css("overflow",defOverflow)
}this.headers.each(function(){maxHeight-=$(this).outerHeight(true)
});
this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))
}).css("overflow","auto")
}else{if(options.autoHeight){maxHeight=0;
this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).height("").height())
}).height(maxHeight)
}}return this
},activate:function(index){this.options.active=index;
var active=this._findActive(index)[0];
this._clickHandler({target:active},active);
return this
},_findActive:function(selector){return selector?typeof selector==="number"?this.headers.filter(":eq("+selector+")"):this.headers.not(this.headers.not(selector)):selector===false?$([]):this.headers.filter(":eq(0)")
},_clickHandler:function(event,target){var options=this.options;
if(options.disabled){return
}if(!event.target){if(!options.collapsible){return
}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(options.icons.headerSelected).addClass(options.icons.header);
this.active.next().addClass("ui-accordion-content-active");
var toHide=this.active.next(),data={options:options,newHeader:$([]),oldHeader:options.active,newContent:$([]),oldContent:toHide},toShow=(this.active=$([]));
this._toggle(toShow,toHide,data);
return
}var clicked=$(event.currentTarget||target),clickedIsActive=clicked[0]===this.active[0];
options.active=options.collapsible&&clickedIsActive?false:this.headers.index(clicked);
if(this.running||(!options.collapsible&&clickedIsActive)){return
}var active=this.active,toShow=clicked.next(),toHide=this.active.next(),data={options:options,newHeader:clickedIsActive&&options.collapsible?$([]):clicked,oldHeader:this.active,newContent:clickedIsActive&&options.collapsible?$([]):toShow,oldContent:toHide},down=this.headers.index(this.active[0])>this.headers.index(clicked[0]);
this.active=clickedIsActive?$([]):clicked;
this._toggle(toShow,toHide,data,clickedIsActive,down);
active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(options.icons.headerSelected).addClass(options.icons.header);
if(!clickedIsActive){clicked.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(options.icons.header).addClass(options.icons.headerSelected);
clicked.next().addClass("ui-accordion-content-active")
}return
},_toggle:function(toShow,toHide,data,clickedIsActive,down){var self=this,options=self.options;
self.toShow=toShow;
self.toHide=toHide;
self.data=data;
var complete=function(){if(!self){return
}return self._completed.apply(self,arguments)
};
self._trigger("changestart",null,self.data);
self.running=toHide.size()===0?toShow.size():toHide.size();
if(options.animated){var animOptions={};
if(options.collapsible&&clickedIsActive){animOptions={toShow:$([]),toHide:toHide,complete:complete,down:down,autoHeight:options.autoHeight||options.fillSpace}
}else{animOptions={toShow:toShow,toHide:toHide,complete:complete,down:down,autoHeight:options.autoHeight||options.fillSpace}
}if(!options.proxied){options.proxied=options.animated
}if(!options.proxiedDuration){options.proxiedDuration=options.duration
}options.animated=$.isFunction(options.proxied)?options.proxied(animOptions):options.proxied;
options.duration=$.isFunction(options.proxiedDuration)?options.proxiedDuration(animOptions):options.proxiedDuration;
var animations=$.ui.accordion.animations,duration=options.duration,easing=options.animated;
if(easing&&!animations[easing]&&!$.easing[easing]){easing="slide"
}if(!animations[easing]){animations[easing]=function(options){this.slide(options,{easing:easing,duration:duration||700})
}
}animations[easing](animOptions)
}else{if(options.collapsible&&clickedIsActive){toShow.toggle()
}else{toHide.hide();
toShow.show()
}complete(true)
}toHide.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();
toShow.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()
},_completed:function(cancel){this.running=cancel?0:--this.running;
if(this.running){return
}if(this.options.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})
}this.toHide.removeClass("ui-accordion-content-active");
if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className
}this._trigger("change",null,this.data)
}});
$.extend($.ui.accordion,{version:"1.8.16",animations:{slide:function(options,additions){options=$.extend({easing:"swing",duration:300},options,additions);
if(!options.toHide.size()){options.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},options);
return
}if(!options.toShow.size()){options.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},options);
return
}var overflow=options.toShow.css("overflow"),percentDone=0,showProps={},hideProps={},fxAttrs=["height","paddingTop","paddingBottom"],originalWidth;
var s=options.toShow;
originalWidth=s[0].style.width;
s.width(parseInt(s.parent().width(),10)-parseInt(s.css("paddingLeft"),10)-parseInt(s.css("paddingRight"),10)-(parseInt(s.css("borderLeftWidth"),10)||0)-(parseInt(s.css("borderRightWidth"),10)||0));
$.each(fxAttrs,function(i,prop){hideProps[prop]="hide";
var parts=(""+$.css(options.toShow[0],prop)).match(/^([\d+-.]+)(.*)$/);
showProps[prop]={value:parts[1],unit:parts[2]||"px"}
});
options.toShow.css({height:0,overflow:"hidden"}).show();
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{step:function(now,settings){if(settings.prop=="height"){percentDone=(settings.end-settings.start===0)?0:(settings.now-settings.start)/(settings.end-settings.start)
}options.toShow[0].style[settings.prop]=(percentDone*showProps[settings.prop].value)+showProps[settings.prop].unit
},duration:options.duration,easing:options.easing,complete:function(){if(!options.autoHeight){options.toShow.css("height","")
}options.toShow.css({width:originalWidth,overflow:overflow});
options.complete()
}})
},bounceslide:function(options){this.slide(options,{easing:options.down?"easeOutBounce":"swing",duration:options.down?1000:200})
}}})
})(jQuery);
(function($,undefined){var requestIndex=0;
$.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var self=this,doc=this.element[0].ownerDocument,suppressKeyPress;
this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(event){if(self.options.disabled||self.element.propAttr("readOnly")){return
}suppressKeyPress=false;
var keyCode=$.ui.keyCode;
switch(event.keyCode){case keyCode.PAGE_UP:self._move("previousPage",event);
break;
case keyCode.PAGE_DOWN:self._move("nextPage",event);
break;
case keyCode.UP:self._move("previous",event);
event.preventDefault();
break;
case keyCode.DOWN:self._move("next",event);
event.preventDefault();
break;
case keyCode.ENTER:case keyCode.NUMPAD_ENTER:if(self.menu.active){suppressKeyPress=true;
event.preventDefault()
}case keyCode.TAB:if(!self.menu.active){return
}self.menu.select(event);
break;
case keyCode.ESCAPE:self.element.val(self.term);
self.close(event);
break;
default:clearTimeout(self.searching);
self.searching=setTimeout(function(){if(self.term!=self.element.val()){self.selectedItem=null;
self.search(null,event)
}},self.options.delay);
break
}}).bind("keypress.autocomplete",function(event){if(suppressKeyPress){suppressKeyPress=false;
event.preventDefault()
}}).bind("focus.autocomplete",function(){if(self.options.disabled){return
}self.selectedItem=null;
self.previous=self.element.val()
}).bind("blur.autocomplete",function(event){if(self.options.disabled){return
}clearTimeout(self.searching);
self.closing=setTimeout(function(){self.close(event);
self._change(event)
},150)
});
this._initSource();
this.response=function(){return self._response.apply(self,arguments)
};
this.menu=$("<ul></ul>").addClass("ui-autocomplete").appendTo($(this.options.appendTo||"body",doc)[0]).mousedown(function(event){var menuElement=self.menu.element[0];
if(!$(event.target).closest(".ui-menu-item").length){setTimeout(function(){$(document).one("mousedown",function(event){if(event.target!==self.element[0]&&event.target!==menuElement&&!$.ui.contains(menuElement,event.target)){self.close()
}})
},1)
}setTimeout(function(){clearTimeout(self.closing)
},13)
}).menu({focus:function(event,ui){var item=ui.item.data("item.autocomplete");
if(false!==self._trigger("focus",event,{item:item})){if(/^key/.test(event.originalEvent.type)){self.element.val(item.value)
}}},selected:function(event,ui){var item=ui.item.data("item.autocomplete"),previous=self.previous;
if(self.element[0]!==doc.activeElement){self.element.focus();
self.previous=previous;
setTimeout(function(){self.previous=previous;
self.selectedItem=item
},1)
}if(false!==self._trigger("select",event,{item:item})){self.element.val(item.value)
}self.term=self.element.val();
self.close(event);
self.selectedItem=item
},blur:function(event,ui){if(self.menu.element.is(":visible")&&(self.element.val()!==self.term)){self.element.val(self.term)
}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
if($.fn.bgiframe){this.menu.element.bgiframe()
}},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();
$.Widget.prototype.destroy.call(this)
},_setOption:function(key,value){$.Widget.prototype._setOption.apply(this,arguments);
if(key==="source"){this._initSource()
}if(key==="appendTo"){this.menu.element.appendTo($(value||"body",this.element[0].ownerDocument)[0])
}if(key==="disabled"&&value&&this.xhr){this.xhr.abort()
}},_initSource:function(){var self=this,array,url;
if($.isArray(this.options.source)){array=this.options.source;
this.source=function(request,response){response($.ui.autocomplete.filter(array,request.term))
}
}else{if(typeof this.options.source==="string"){url=this.options.source;
this.source=function(request,response){if(self.xhr){self.xhr.abort()
}self.xhr=$.ajax({url:url,data:request,dataType:"json",autocompleteRequest:++requestIndex,success:function(data,status){if(this.autocompleteRequest===requestIndex){response(data)
}},error:function(){if(this.autocompleteRequest===requestIndex){response([])
}}})
}
}else{this.source=this.options.source
}}},search:function(value,event){value=value!=null?value:this.element.val();
this.term=this.element.val();
if(value.length<this.options.minLength){return this.close(event)
}clearTimeout(this.closing);
if(this._trigger("search",event)===false){return
}return this._search(value)
},_search:function(value){this.pending++;
this.element.addClass("ui-autocomplete-loading");
this.source({term:value},this.response)
},_response:function(content){if(!this.options.disabled&&content&&content.length){content=this._normalize(content);
this._suggest(content);
this._trigger("open")
}else{this.close()
}this.pending--;
if(!this.pending){this.element.removeClass("ui-autocomplete-loading")
}},close:function(event){clearTimeout(this.closing);
if(this.menu.element.is(":visible")){this.menu.element.hide();
this.menu.deactivate();
this._trigger("close",event)
}},_change:function(event){if(this.previous!==this.element.val()){this._trigger("change",event,{item:this.selectedItem})
}},_normalize:function(items){if(items.length&&items[0].label&&items[0].value){return items
}return $.map(items,function(item){if(typeof item==="string"){return{label:item,value:item}
}return $.extend({label:item.label||item.value,value:item.value||item.label},item)
})
},_suggest:function(items){var ul=this.menu.element.empty().zIndex(this.element.zIndex()+1);
this._renderMenu(ul,items);
this.menu.deactivate();
this.menu.refresh();
ul.show();
this._resizeMenu();
ul.position($.extend({of:this.element},this.options.position));
if(this.options.autoFocus){this.menu.next(new $.Event("mouseover"))
}},_resizeMenu:function(){var ul=this.menu.element;
ul.outerWidth(Math.max(ul.width("").outerWidth(),this.element.outerWidth()))
},_renderMenu:function(ul,items){var self=this;
$.each(items,function(index,item){self._renderItem(ul,item)
})
},_renderItem:function(ul,item){return $("<li></li>").data("item.autocomplete",item).append($("<a></a>").text(item.label)).appendTo(ul)
},_move:function(direction,event){if(!this.menu.element.is(":visible")){this.search(null,event);
return
}if(this.menu.first()&&/^previous/.test(direction)||this.menu.last()&&/^next/.test(direction)){this.element.val(this.term);
this.menu.deactivate();
return
}this.menu[direction](event)
},widget:function(){return this.menu.element
}});
$.extend($.ui.autocomplete,{escapeRegex:function(value){return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")
},filter:function(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),"i");
return $.grep(array,function(value){return matcher.test(value.label||value.value||value)
})
}})
}(jQuery));
(function($){$.widget("ui.menu",{_create:function(){var self=this;
this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(event){if(!$(event.target).closest(".ui-menu-item a").length){return
}event.preventDefault();
self.select(event)
});
this.refresh()
},refresh:function(){var self=this;
var items=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");
items.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(event){self.activate(event,$(this).parent())
}).mouseleave(function(){self.deactivate()
})
},activate:function(event,item){this.deactivate();
if(this.hasScroll()){var offset=item.offset().top-this.element.offset().top,scroll=this.element.scrollTop(),elementHeight=this.element.height();
if(offset<0){this.element.scrollTop(scroll+offset)
}else{if(offset>=elementHeight){this.element.scrollTop(scroll+offset-elementHeight+item.height())
}}}this.active=item.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();
this._trigger("focus",event,{item:item})
},deactivate:function(){if(!this.active){return
}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");
this.active=null
},next:function(event){this.move("next",".ui-menu-item:first",event)
},previous:function(event){this.move("prev",".ui-menu-item:last",event)
},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length
},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length
},move:function(direction,edge,event){if(!this.active){this.activate(event,this.element.children(edge));
return
}var next=this.active[direction+"All"](".ui-menu-item").eq(0);
if(next.length){this.activate(event,next)
}else{this.activate(event,this.element.children(edge))
}},nextPage:function(event){if(this.hasScroll()){if(!this.active||this.last()){this.activate(event,this.element.children(".ui-menu-item:first"));
return
}var base=this.active.offset().top,height=this.element.height(),result=this.element.children(".ui-menu-item").filter(function(){var close=$(this).offset().top-base-height+$(this).height();
return close<10&&close>-10
});
if(!result.length){result=this.element.children(".ui-menu-item:last")
}this.activate(event,result)
}else{this.activate(event,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))
}},previousPage:function(event){if(this.hasScroll()){if(!this.active||this.first()){this.activate(event,this.element.children(".ui-menu-item:last"));
return
}var base=this.active.offset().top,height=this.element.height();
result=this.element.children(".ui-menu-item").filter(function(){var close=$(this).offset().top-base+height-$(this).height();
return close<10&&close>-10
});
if(!result.length){result=this.element.children(".ui-menu-item:first")
}this.activate(event,result)
}else{this.activate(event,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))
}},hasScroll:function(){return this.element.height()<this.element[$.fn.prop?"prop":"attr"]("scrollHeight")
},select:function(event){this._trigger("selected",event,{item:this.active})
}})
}(jQuery));
(function($,undefined){var lastActive,startXPos,startYPos,clickDragged,baseClasses="ui-button ui-widget ui-state-default ui-corner-all",stateClasses="ui-state-hover ui-state-active ",typeClasses="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",formResetHandler=function(){var buttons=$(this).find(":ui-button");
setTimeout(function(){buttons.button("refresh")
},1)
},radioGroup=function(radio){var name=radio.name,form=radio.form,radios=$([]);
if(name){if(form){radios=$(form).find("[name='"+name+"']")
}else{radios=$("[name='"+name+"']",radio.ownerDocument).filter(function(){return !this.form
})
}}return radios
};
$.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",formResetHandler);
if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.propAttr("disabled")
}this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");
var self=this,options=this.options,toggleButton=this.type==="checkbox"||this.type==="radio",hoverClass="ui-state-hover"+(!toggleButton?" ui-state-active":""),focusClass="ui-state-focus";
if(options.label===null){options.label=this.buttonElement.html()
}if(this.element.is(":disabled")){options.disabled=true
}this.buttonElement.addClass(baseClasses).attr("role","button").bind("mouseenter.button",function(){if(options.disabled){return
}$(this).addClass("ui-state-hover");
if(this===lastActive){$(this).addClass("ui-state-active")
}}).bind("mouseleave.button",function(){if(options.disabled){return
}$(this).removeClass(hoverClass)
}).bind("click.button",function(event){if(options.disabled){event.preventDefault();
event.stopImmediatePropagation()
}});
this.element.bind("focus.button",function(){self.buttonElement.addClass(focusClass)
}).bind("blur.button",function(){self.buttonElement.removeClass(focusClass)
});
if(toggleButton){this.element.bind("change.button",function(){if(clickDragged){return
}self.refresh()
});
this.buttonElement.bind("mousedown.button",function(event){if(options.disabled){return
}clickDragged=false;
startXPos=event.pageX;
startYPos=event.pageY
}).bind("mouseup.button",function(event){if(options.disabled){return
}if(startXPos!==event.pageX||startYPos!==event.pageY){clickDragged=true
}})
}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(options.disabled||clickDragged){return false
}$(this).toggleClass("ui-state-active");
self.buttonElement.attr("aria-pressed",self.element[0].checked)
})
}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(options.disabled||clickDragged){return false
}$(this).addClass("ui-state-active");
self.buttonElement.attr("aria-pressed","true");
var radio=self.element[0];
radioGroup(radio).not(radio).map(function(){return $(this).button("widget")[0]
}).removeClass("ui-state-active").attr("aria-pressed","false")
})
}else{this.buttonElement.bind("mousedown.button",function(){if(options.disabled){return false
}$(this).addClass("ui-state-active");
lastActive=this;
$(document).one("mouseup",function(){lastActive=null
})
}).bind("mouseup.button",function(){if(options.disabled){return false
}$(this).removeClass("ui-state-active")
}).bind("keydown.button",function(event){if(options.disabled){return false
}if(event.keyCode==$.ui.keyCode.SPACE||event.keyCode==$.ui.keyCode.ENTER){$(this).addClass("ui-state-active")
}}).bind("keyup.button",function(){$(this).removeClass("ui-state-active")
});
if(this.buttonElement.is("a")){this.buttonElement.keyup(function(event){if(event.keyCode===$.ui.keyCode.SPACE){$(this).click()
}})
}}}this._setOption("disabled",options.disabled);
this._resetButton()
},_determineButtonType:function(){if(this.element.is(":checkbox")){this.type="checkbox"
}else{if(this.element.is(":radio")){this.type="radio"
}else{if(this.element.is("input")){this.type="input"
}else{this.type="button"
}}}if(this.type==="checkbox"||this.type==="radio"){var ancestor=this.element.parents().filter(":last"),labelSelector="label[for='"+this.element.attr("id")+"']";
this.buttonElement=ancestor.find(labelSelector);
if(!this.buttonElement.length){ancestor=ancestor.length?ancestor.siblings():this.element.siblings();
this.buttonElement=ancestor.filter(labelSelector);
if(!this.buttonElement.length){this.buttonElement=ancestor.find(labelSelector)
}}this.element.addClass("ui-helper-hidden-accessible");
var checked=this.element.is(":checked");
if(checked){this.buttonElement.addClass("ui-state-active")
}this.buttonElement.attr("aria-pressed",checked)
}else{this.buttonElement=this.element
}},widget:function(){return this.buttonElement
},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");
this.buttonElement.removeClass(baseClasses+" "+stateClasses+" "+typeClasses).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
if(!this.hasTitle){this.buttonElement.removeAttr("title")
}$.Widget.prototype.destroy.call(this)
},_setOption:function(key,value){$.Widget.prototype._setOption.apply(this,arguments);
if(key==="disabled"){if(value){this.element.propAttr("disabled",true)
}else{this.element.propAttr("disabled",false)
}return
}this._resetButton()
},refresh:function(){var isDisabled=this.element.is(":disabled");
if(isDisabled!==this.options.disabled){this._setOption("disabled",isDisabled)
}if(this.type==="radio"){radioGroup(this.element[0]).each(function(){if($(this).is(":checked")){$(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")
}else{$(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")
}})
}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")
}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")
}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)
}return
}var buttonElement=this.buttonElement.removeClass(typeClasses),buttonText=$("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(buttonElement.empty()).text(),icons=this.options.icons,multipleIcons=icons.primary&&icons.secondary,buttonClasses=[];
if(icons.primary||icons.secondary){if(this.options.text){buttonClasses.push("ui-button-text-icon"+(multipleIcons?"s":(icons.primary?"-primary":"-secondary")))
}if(icons.primary){buttonElement.prepend("<span class='ui-button-icon-primary ui-icon "+icons.primary+"'></span>")
}if(icons.secondary){buttonElement.append("<span class='ui-button-icon-secondary ui-icon "+icons.secondary+"'></span>")
}if(!this.options.text){buttonClasses.push(multipleIcons?"ui-button-icons-only":"ui-button-icon-only");
if(!this.hasTitle){buttonElement.attr("title",buttonText)
}}}else{buttonClasses.push("ui-button-text-only")
}buttonElement.addClass(buttonClasses.join(" "))
}});
$.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")
},_init:function(){this.refresh()
},_setOption:function(key,value){if(key==="disabled"){this.buttons.button("option",key,value)
}$.Widget.prototype._setOption.apply(this,arguments)
},refresh:function(){var ltr=this.element.css("direction")==="ltr";
this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return $(this).button("widget")[0]
}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(ltr?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(ltr?"ui-corner-right":"ui-corner-left").end().end()
},destroy:function(){this.element.removeClass("ui-buttonset");
this.buttons.map(function(){return $(this).button("widget")[0]
}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
$.Widget.prototype.destroy.call(this)
}})
}(jQuery));
(function($,undefined){var uiDialogClasses="ui-dialog ui-widget ui-widget-content ui-corner-all ",sizeRelatedOptions={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},attrFn=$.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};
$.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(pos){var topOffset=$(this).css(pos).offset().top;
if(topOffset<0){$(this).css("top",pos.top-topOffset)
}}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");
if(typeof this.originalTitle!=="string"){this.originalTitle=""
}this.options.title=this.options.title||this.originalTitle;
var self=this,options=self.options,title=options.title||"&#160;",titleId=$.ui.dialog.getTitleId(self.element),uiDialog=(self.uiDialog=$("<div></div>")).appendTo(document.body).hide().addClass(uiDialogClasses+options.dialogClass).css({zIndex:options.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(event){if(options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){self.close(event);
event.preventDefault()
}}).attr({role:"dialog","aria-labelledby":titleId}).mousedown(function(event){self.moveToTop(false,event)
}),uiDialogContent=self.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(uiDialog),uiDialogTitlebar=(self.uiDialogTitlebar=$("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(uiDialog),uiDialogTitlebarClose=$('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){uiDialogTitlebarClose.addClass("ui-state-hover")
},function(){uiDialogTitlebarClose.removeClass("ui-state-hover")
}).focus(function(){uiDialogTitlebarClose.addClass("ui-state-focus")
}).blur(function(){uiDialogTitlebarClose.removeClass("ui-state-focus")
}).click(function(event){self.close(event);
return false
}).appendTo(uiDialogTitlebar),uiDialogTitlebarCloseText=(self.uiDialogTitlebarCloseText=$("<span></span>")).addClass("ui-icon ui-icon-closethick").text(options.closeText).appendTo(uiDialogTitlebarClose),uiDialogTitle=$("<span></span>").addClass("ui-dialog-title").attr("id",titleId).html(title).prependTo(uiDialogTitlebar);
if($.isFunction(options.beforeclose)&&!$.isFunction(options.beforeClose)){options.beforeClose=options.beforeclose
}uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection();
if(options.draggable&&$.fn.draggable){self._makeDraggable()
}if(options.resizable&&$.fn.resizable){self._makeResizable()
}self._createButtons(options.buttons);
self._isOpen=false;
if($.fn.bgiframe){uiDialog.bgiframe()
}},_init:function(){if(this.options.autoOpen){this.open()
}},destroy:function(){var self=this;
if(self.overlay){self.overlay.destroy()
}self.uiDialog.hide();
self.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
self.uiDialog.remove();
if(self.originalTitle){self.element.attr("title",self.originalTitle)
}return self
},widget:function(){return this.uiDialog
},close:function(event){var self=this,maxZ,thisZ;
if(false===self._trigger("beforeClose",event)){return
}if(self.overlay){self.overlay.destroy()
}self.uiDialog.unbind("keypress.ui-dialog");
self._isOpen=false;
if(self.options.hide){self.uiDialog.hide(self.options.hide,function(){self._trigger("close",event)
})
}else{self.uiDialog.hide();
self._trigger("close",event)
}$.ui.dialog.overlay.resize();
if(self.options.modal){maxZ=0;
$(".ui-dialog").each(function(){if(this!==self.uiDialog[0]){thisZ=$(this).css("z-index");
if(!isNaN(thisZ)){maxZ=Math.max(maxZ,thisZ)
}}});
$.ui.dialog.maxZ=maxZ
}return self
},isOpen:function(){return this._isOpen
},moveToTop:function(force,event){var self=this,options=self.options,saveScroll;
if((options.modal&&!force)||(!options.stack&&!options.modal)){return self._trigger("focus",event)
}if(options.zIndex>$.ui.dialog.maxZ){$.ui.dialog.maxZ=options.zIndex
}if(self.overlay){$.ui.dialog.maxZ+=1;
self.overlay.$el.css("z-index",$.ui.dialog.overlay.maxZ=$.ui.dialog.maxZ)
}saveScroll={scrollTop:self.element.scrollTop(),scrollLeft:self.element.scrollLeft()};
$.ui.dialog.maxZ+=1;
self.uiDialog.css("z-index",$.ui.dialog.maxZ);
self.element.attr(saveScroll);
self._trigger("focus",event);
return self
},open:function(){if(this._isOpen){return
}var self=this,options=self.options,uiDialog=self.uiDialog;
self.overlay=options.modal?new $.ui.dialog.overlay(self):null;
self._size();
self._position(options.position);
uiDialog.show(options.show);
self.moveToTop(true);
if(options.modal){uiDialog.bind("keypress.ui-dialog",function(event){if(event.keyCode!==$.ui.keyCode.TAB){return
}var tabbables=$(":tabbable",this),first=tabbables.filter(":first"),last=tabbables.filter(":last");
if(event.target===last[0]&&!event.shiftKey){first.focus(1);
return false
}else{if(event.target===first[0]&&event.shiftKey){last.focus(1);
return false
}}})
}$(self.element.find(":tabbable").get().concat(uiDialog.find(".ui-dialog-buttonpane :tabbable").get().concat(uiDialog.get()))).eq(0).focus();
self._isOpen=true;
self._trigger("open");
return self
},_createButtons:function(buttons){var self=this,hasButtons=false,uiDialogButtonPane=$("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),uiButtonSet=$("<div></div>").addClass("ui-dialog-buttonset").appendTo(uiDialogButtonPane);
self.uiDialog.find(".ui-dialog-buttonpane").remove();
if(typeof buttons==="object"&&buttons!==null){$.each(buttons,function(){return !(hasButtons=true)
})
}if(hasButtons){$.each(buttons,function(name,props){props=$.isFunction(props)?{click:props,text:name}:props;
var button=$('<button type="button"></button>').click(function(){props.click.apply(self.element[0],arguments)
}).appendTo(uiButtonSet);
$.each(props,function(key,value){if(key==="click"){return
}if(key in attrFn){button[key](value)
}else{button.attr(key,value)
}});
if($.fn.button){button.button()
}});
uiDialogButtonPane.appendTo(self.uiDialog)
}},_makeDraggable:function(){var self=this,options=self.options,doc=$(document),heightBeforeDrag;
function filteredUi(ui){return{position:ui.position,offset:ui.offset}
}self.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(event,ui){heightBeforeDrag=options.height==="auto"?"auto":$(this).height();
$(this).height($(this).height()).addClass("ui-dialog-dragging");
self._trigger("dragStart",event,filteredUi(ui))
},drag:function(event,ui){self._trigger("drag",event,filteredUi(ui))
},stop:function(event,ui){options.position=[ui.position.left-doc.scrollLeft(),ui.position.top-doc.scrollTop()];
$(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);
self._trigger("dragStop",event,filteredUi(ui));
$.ui.dialog.overlay.resize()
}})
},_makeResizable:function(handles){handles=(handles===undefined?this.options.resizable:handles);
var self=this,options=self.options,position=self.uiDialog.css("position"),resizeHandles=(typeof handles==="string"?handles:"n,e,s,w,se,sw,ne,nw");
function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size}
}self.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:self.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:self._minHeight(),handles:resizeHandles,start:function(event,ui){$(this).addClass("ui-dialog-resizing");
self._trigger("resizeStart",event,filteredUi(ui))
},resize:function(event,ui){self._trigger("resize",event,filteredUi(ui))
},stop:function(event,ui){$(this).removeClass("ui-dialog-resizing");
options.height=$(this).height();
options.width=$(this).width();
self._trigger("resizeStop",event,filteredUi(ui));
$.ui.dialog.overlay.resize()
}}).css("position",position).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")
},_minHeight:function(){var options=this.options;
if(options.height==="auto"){return options.minHeight
}else{return Math.min(options.minHeight,options.height)
}},_position:function(position){var myAt=[],offset=[0,0],isVisible;
if(position){if(typeof position==="string"||(typeof position==="object"&&"0" in position)){myAt=position.split?position.split(" "):[position[0],position[1]];
if(myAt.length===1){myAt[1]=myAt[0]
}$.each(["left","top"],function(i,offsetPosition){if(+myAt[i]===myAt[i]){offset[i]=myAt[i];
myAt[i]=offsetPosition
}});
position={my:myAt.join(" "),at:myAt.join(" "),offset:offset.join(" ")}
}position=$.extend({},$.ui.dialog.prototype.options.position,position)
}else{position=$.ui.dialog.prototype.options.position
}isVisible=this.uiDialog.is(":visible");
if(!isVisible){this.uiDialog.show()
}this.uiDialog.css({top:0,left:0}).position($.extend({of:window},position));
if(!isVisible){this.uiDialog.hide()
}},_setOptions:function(options){var self=this,resizableOptions={},resize=false;
$.each(options,function(key,value){self._setOption(key,value);
if(key in sizeRelatedOptions){resize=true
}if(key in resizableRelatedOptions){resizableOptions[key]=value
}});
if(resize){this._size()
}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",resizableOptions)
}},_setOption:function(key,value){var self=this,uiDialog=self.uiDialog;
switch(key){case"beforeclose":key="beforeClose";
break;
case"buttons":self._createButtons(value);
break;
case"closeText":self.uiDialogTitlebarCloseText.text(""+value);
break;
case"dialogClass":uiDialog.removeClass(self.options.dialogClass).addClass(uiDialogClasses+value);
break;
case"disabled":if(value){uiDialog.addClass("ui-dialog-disabled")
}else{uiDialog.removeClass("ui-dialog-disabled")
}break;
case"draggable":var isDraggable=uiDialog.is(":data(draggable)");
if(isDraggable&&!value){uiDialog.draggable("destroy")
}if(!isDraggable&&value){self._makeDraggable()
}break;
case"position":self._position(value);
break;
case"resizable":var isResizable=uiDialog.is(":data(resizable)");
if(isResizable&&!value){uiDialog.resizable("destroy")
}if(isResizable&&typeof value==="string"){uiDialog.resizable("option","handles",value)
}if(!isResizable&&value!==false){self._makeResizable(value)
}break;
case"title":$(".ui-dialog-title",self.uiDialogTitlebar).html(""+(value||"&#160;"));
break
}$.Widget.prototype._setOption.apply(self,arguments)
},_size:function(){var options=this.options,nonContentHeight,minContentHeight,isVisible=this.uiDialog.is(":visible");
this.element.show().css({width:"auto",minHeight:0,height:0});
if(options.minWidth>options.width){options.width=options.minWidth
}nonContentHeight=this.uiDialog.css({height:"auto",width:options.width}).height();
minContentHeight=Math.max(0,options.minHeight-nonContentHeight);
if(options.height==="auto"){if($.support.minHeight){this.element.css({minHeight:minContentHeight,height:"auto"})
}else{this.uiDialog.show();
var autoHeight=this.element.css("height","auto").height();
if(!isVisible){this.uiDialog.hide()
}this.element.height(Math.max(autoHeight,minContentHeight))
}}else{this.element.height(Math.max(options.height-nonContentHeight,0))
}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())
}}});
$.extend($.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function($el){var id=$el.attr("id");
if(!id){this.uuid+=1;
id=this.uuid
}return"ui-dialog-title-"+id
},overlay:function(dialog){this.$el=$.ui.dialog.overlay.create(dialog)
}});
$.extend($.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:$.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(event){return event+".dialog-overlay"
}).join(" "),create:function(dialog){if(this.instances.length===0){setTimeout(function(){if($.ui.dialog.overlay.instances.length){$(document).bind($.ui.dialog.overlay.events,function(event){if($(event.target).zIndex()<$.ui.dialog.overlay.maxZ){return false
}})
}},1);
$(document).bind("keydown.dialog-overlay",function(event){if(dialog.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){dialog.close(event);
event.preventDefault()
}});
$(window).bind("resize.dialog-overlay",$.ui.dialog.overlay.resize)
}var $el=(this.oldInstances.pop()||$("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});
if($.fn.bgiframe){$el.bgiframe()
}this.instances.push($el);
return $el
},destroy:function($el){var indexOf=$.inArray($el,this.instances);
if(indexOf!=-1){this.oldInstances.push(this.instances.splice(indexOf,1)[0])
}if(this.instances.length===0){$([document,window]).unbind(".dialog-overlay")
}$el.remove();
var maxZ=0;
$.each(this.instances,function(){maxZ=Math.max(maxZ,this.css("z-index"))
});
this.maxZ=maxZ
},height:function(){var scrollHeight,offsetHeight;
if($.browser.msie&&$.browser.version<7){scrollHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
offsetHeight=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);
if(scrollHeight<offsetHeight){return $(window).height()+"px"
}else{return scrollHeight+"px"
}}else{return $(document).height()+"px"
}},width:function(){var scrollWidth,offsetWidth;
if($.browser.msie){scrollWidth=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);
offsetWidth=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);
if(scrollWidth<offsetWidth){return $(window).width()+"px"
}else{return scrollWidth+"px"
}}else{return $(document).width()+"px"
}},resize:function(){var $overlays=$([]);
$.each($.ui.dialog.overlay.instances,function(){$overlays=$overlays.add(this)
});
$overlays.css({width:0,height:0}).css({width:$.ui.dialog.overlay.width(),height:$.ui.dialog.overlay.height()})
}});
$.extend($.ui.dialog.overlay.prototype,{destroy:function(){$.ui.dialog.overlay.destroy(this.$el)
}})
}(jQuery));
(function($,undefined){var numPages=5;
$.widget("ui.slider",$.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var self=this,o=this.options,existingHandles=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),handle="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",handleCount=(o.values&&o.values.length)||1,handles=[];
this._keySliding=false;
this._mouseSliding=false;
this._animateOff=true;
this._handleIndex=null;
this._detectOrientation();
this._mouseInit();
this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(o.disabled?" ui-slider-disabled ui-disabled":""));
this.range=$([]);
if(o.range){if(o.range===true){if(!o.values){o.values=[this._valueMin(),this._valueMin()]
}if(o.values.length&&o.values.length!==2){o.values=[o.values[0],o.values[0]]
}}this.range=$("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+((o.range==="min"||o.range==="max")?" ui-slider-range-"+o.range:""))
}for(var i=existingHandles.length;
i<handleCount;
i+=1){handles.push(handle)
}this.handles=existingHandles.add($(handles.join("")).appendTo(self.element));
this.handle=this.handles.eq(0);
this.handles.add(this.range).filter("a").click(function(event){event.preventDefault()
}).hover(function(){if(!o.disabled){$(this).addClass("ui-state-hover")
}},function(){$(this).removeClass("ui-state-hover")
}).focus(function(){if(!o.disabled){$(".ui-slider .ui-state-focus").removeClass("ui-state-focus");
$(this).addClass("ui-state-focus")
}else{$(this).blur()
}}).blur(function(){$(this).removeClass("ui-state-focus")
});
this.handles.each(function(i){$(this).data("index.ui-slider-handle",i)
});
this.handles.keydown(function(event){var ret=true,index=$(this).data("index.ui-slider-handle"),allowed,curVal,newVal,step;
if(self.options.disabled){return
}switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:ret=false;
if(!self._keySliding){self._keySliding=true;
$(this).addClass("ui-state-active");
allowed=self._start(event,index);
if(allowed===false){return
}}break
}step=self.options.step;
if(self.options.values&&self.options.values.length){curVal=newVal=self.values(index)
}else{curVal=newVal=self.value()
}switch(event.keyCode){case $.ui.keyCode.HOME:newVal=self._valueMin();
break;
case $.ui.keyCode.END:newVal=self._valueMax();
break;
case $.ui.keyCode.PAGE_UP:newVal=self._trimAlignValue(curVal+((self._valueMax()-self._valueMin())/numPages));
break;
case $.ui.keyCode.PAGE_DOWN:newVal=self._trimAlignValue(curVal-((self._valueMax()-self._valueMin())/numPages));
break;
case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===self._valueMax()){return
}newVal=self._trimAlignValue(curVal+step);
break;
case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===self._valueMin()){return
}newVal=self._trimAlignValue(curVal-step);
break
}self._slide(event,index,newVal);
return ret
}).keyup(function(event){var index=$(this).data("index.ui-slider-handle");
if(self._keySliding){self._keySliding=false;
self._stop(event,index);
self._change(event,index);
$(this).removeClass("ui-state-active")
}});
this._refreshValue();
this._animateOff=false
},destroy:function(){this.handles.remove();
this.range.remove();
this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();
return this
},_mouseCapture:function(event){var o=this.options,position,normValue,distance,closestHandle,self,index,allowed,offset,mouseOverHandle;
if(o.disabled){return false
}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};
this.elementOffset=this.element.offset();
position={x:event.pageX,y:event.pageY};
normValue=this._normValueFromMouse(position);
distance=this._valueMax()-this._valueMin()+1;
self=this;
this.handles.each(function(i){var thisDistance=Math.abs(normValue-self.values(i));
if(distance>thisDistance){distance=thisDistance;
closestHandle=$(this);
index=i
}});
if(o.range===true&&this.values(1)===o.min){index+=1;
closestHandle=$(this.handles[index])
}allowed=this._start(event,index);
if(allowed===false){return false
}this._mouseSliding=true;
self._handleIndex=index;
closestHandle.addClass("ui-state-active").focus();
offset=closestHandle.offset();
mouseOverHandle=!$(event.target).parents().andSelf().is(".ui-slider-handle");
this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/2),top:event.pageY-offset.top-(closestHandle.height()/2)-(parseInt(closestHandle.css("borderTopWidth"),10)||0)-(parseInt(closestHandle.css("borderBottomWidth"),10)||0)+(parseInt(closestHandle.css("marginTop"),10)||0)};
if(!this.handles.hasClass("ui-state-hover")){this._slide(event,index,normValue)
}this._animateOff=true;
return true
},_mouseStart:function(event){return true
},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);
this._slide(event,this._handleIndex,normValue);
return false
},_mouseStop:function(event){this.handles.removeClass("ui-state-active");
this._mouseSliding=false;
this._stop(event,this._handleIndex);
this._change(event,this._handleIndex);
this._handleIndex=null;
this._clickOffset=null;
this._animateOff=false;
return false
},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"
},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;
if(this.orientation==="horizontal"){pixelTotal=this.elementSize.width;
pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)
}else{pixelTotal=this.elementSize.height;
pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)
}percentMouse=(pixelMouse/pixelTotal);
if(percentMouse>1){percentMouse=1
}if(percentMouse<0){percentMouse=0
}if(this.orientation==="vertical"){percentMouse=1-percentMouse
}valueTotal=this._valueMax()-this._valueMin();
valueMouse=this._valueMin()+percentMouse*valueTotal;
return this._trimAlignValue(valueMouse)
},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};
if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);
uiHash.values=this.values()
}return this._trigger("start",event,uiHash)
},_slide:function(event,index,newVal){var otherVal,newValues,allowed;
if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);
if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal<otherVal))){newVal=otherVal
}if(newVal!==this.values(index)){newValues=this.values();
newValues[index]=newVal;
allowed=this._trigger("slide",event,{handle:this.handles[index],value:newVal,values:newValues});
otherVal=this.values(index?0:1);
if(allowed!==false){this.values(index,newVal,true)
}}}else{if(newVal!==this.value()){allowed=this._trigger("slide",event,{handle:this.handles[index],value:newVal});
if(allowed!==false){this.value(newVal)
}}}},_stop:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};
if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);
uiHash.values=this.values()
}this._trigger("stop",event,uiHash)
},_change:function(event,index){if(!this._keySliding&&!this._mouseSliding){var uiHash={handle:this.handles[index],value:this.value()};
if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);
uiHash.values=this.values()
}this._trigger("change",event,uiHash)
}},value:function(newValue){if(arguments.length){this.options.value=this._trimAlignValue(newValue);
this._refreshValue();
this._change(null,0);
return
}return this._value()
},values:function(index,newValue){var vals,newValues,i;
if(arguments.length>1){this.options.values[index]=this._trimAlignValue(newValue);
this._refreshValue();
this._change(null,index);
return
}if(arguments.length){if($.isArray(arguments[0])){vals=this.options.values;
newValues=arguments[0];
for(i=0;
i<vals.length;
i+=1){vals[i]=this._trimAlignValue(newValues[i]);
this._change(null,i)
}this._refreshValue()
}else{if(this.options.values&&this.options.values.length){return this._values(index)
}else{return this.value()
}}}else{return this._values()
}},_setOption:function(key,value){var i,valsLength=0;
if($.isArray(this.options.values)){valsLength=this.options.values.length
}$.Widget.prototype._setOption.apply(this,arguments);
switch(key){case"disabled":if(value){this.handles.filter(".ui-state-focus").blur();
this.handles.removeClass("ui-state-hover");
this.handles.propAttr("disabled",true);
this.element.addClass("ui-disabled")
}else{this.handles.propAttr("disabled",false);
this.element.removeClass("ui-disabled")
}break;
case"orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();
break;
case"value":this._animateOff=true;
this._refreshValue();
this._change(null,0);
this._animateOff=false;
break;
case"values":this._animateOff=true;
this._refreshValue();
for(i=0;
i<valsLength;
i+=1){this._change(null,i)
}this._animateOff=false;
break
}},_value:function(){var val=this.options.value;
val=this._trimAlignValue(val);
return val
},_values:function(index){var val,vals,i;
if(arguments.length){val=this.options.values[index];
val=this._trimAlignValue(val);
return val
}else{vals=this.options.values.slice();
for(i=0;
i<vals.length;
i+=1){vals[i]=this._trimAlignValue(vals[i])
}return vals
}},_trimAlignValue:function(val){if(val<=this._valueMin()){return this._valueMin()
}if(val>=this._valueMax()){return this._valueMax()
}var step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;
if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step)
}return parseFloat(alignValue.toFixed(5))
},_valueMin:function(){return this.options.min
},_valueMax:function(){return this.options.max
},_refreshValue:function(){var oRange=this.options.range,o=this.options,self=this,animate=(!this._animateOff)?o.animate:false,valPercent,_set={},lastValPercent,value,valueMin,valueMax;
if(this.options.values&&this.options.values.length){this.handles.each(function(i,j){valPercent=(self.values(i)-self._valueMin())/(self._valueMax()-self._valueMin())*100;
_set[self.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";
$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);
if(self.options.range===true){if(self.orientation==="horizontal"){if(i===0){self.range.stop(1,1)[animate?"animate":"css"]({left:valPercent+"%"},o.animate)
}if(i===1){self.range[animate?"animate":"css"]({width:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})
}}else{if(i===0){self.range.stop(1,1)[animate?"animate":"css"]({bottom:(valPercent)+"%"},o.animate)
}if(i===1){self.range[animate?"animate":"css"]({height:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})
}}}lastValPercent=valPercent
})
}else{value=this.value();
valueMin=this._valueMin();
valueMax=this._valueMax();
valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;
_set[self.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";
this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);
if(oRange==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[animate?"animate":"css"]({width:valPercent+"%"},o.animate)
}if(oRange==="max"&&this.orientation==="horizontal"){this.range[animate?"animate":"css"]({width:(100-valPercent)+"%"},{queue:false,duration:o.animate})
}if(oRange==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[animate?"animate":"css"]({height:valPercent+"%"},o.animate)
}if(oRange==="max"&&this.orientation==="vertical"){this.range[animate?"animate":"css"]({height:(100-valPercent)+"%"},{queue:false,duration:o.animate})
}}}});
$.extend($.ui.slider,{version:"1.8.16"})
}(jQuery));
(function($,undefined){var tabId=0,listId=0;
function getNextTabId(){return ++tabId
}function getNextListId(){return ++listId
}$.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)
},_setOption:function(key,value){if(key=="selected"){if(this.options.collapsible&&value==this.options.selected){return
}this.select(value)
}else{this.options[key]=value;
this._tabify()
}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+getNextTabId()
},_sanitizeSelector:function(hash){return hash.replace(/:/g,"\\:")
},_cookie:function(){var cookie=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+getNextListId());
return $.cookie.apply(null,[cookie].concat($.makeArray(arguments)))
},_ui:function(tab,panel){return{tab:tab,panel:panel,index:this.anchors.index(tab)}
},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var el=$(this);
el.html(el.data("label.tabs")).removeData("label.tabs")
})
},_tabify:function(init){var self=this,o=this.options,fragmentId=/^#.+/;
this.list=this.element.find("ol,ul").eq(0);
this.lis=$(" > li:has(a[href])",this.list);
this.anchors=this.lis.map(function(){return $("a",this)[0]
});
this.panels=$([]);
this.anchors.each(function(i,a){var href=$(a).attr("href");
var hrefBase=href.split("#")[0],baseEl;
if(hrefBase&&(hrefBase===location.toString().split("#")[0]||(baseEl=$("base")[0])&&hrefBase===baseEl.href)){href=a.hash;
a.href=href
}if(fragmentId.test(href)){self.panels=self.panels.add(self.element.find(self._sanitizeSelector(href)))
}else{if(href&&href!=="#"){$.data(a,"href.tabs",href);
$.data(a,"load.tabs",href.replace(/#.*$/,""));
var id=self._tabId(a);
a.href="#"+id;
var $panel=self.element.find("#"+id);
if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(self.panels[i-1]||self.list);
$panel.data("destroy.tabs",true)
}self.panels=self.panels.add($panel)
}else{o.disabled.push(i)
}}});
if(init){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.lis.addClass("ui-state-default ui-corner-top");
this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");
if(o.selected===undefined){if(location.hash){this.anchors.each(function(i,a){if(a.hash==location.hash){o.selected=i;
return false
}})
}if(typeof o.selected!=="number"&&o.cookie){o.selected=parseInt(self._cookie(),10)
}if(typeof o.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))
}o.selected=o.selected||(this.lis.length?0:-1)
}else{if(o.selected===null){o.selected=-1
}}o.selected=((o.selected>=0&&this.anchors[o.selected])||o.selected<0)?o.selected:0;
o.disabled=$.unique(o.disabled.concat($.map(this.lis.filter(".ui-state-disabled"),function(n,i){return self.lis.index(n)
}))).sort();
if($.inArray(o.selected,o.disabled)!=-1){o.disabled.splice($.inArray(o.selected,o.disabled),1)
}this.panels.addClass("ui-tabs-hide");
this.lis.removeClass("ui-tabs-selected ui-state-active");
if(o.selected>=0&&this.anchors.length){self.element.find(self._sanitizeSelector(self.anchors[o.selected].hash)).removeClass("ui-tabs-hide");
this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active");
self.element.queue("tabs",function(){self._trigger("show",null,self._ui(self.anchors[o.selected],self.element.find(self._sanitizeSelector(self.anchors[o.selected].hash))[0]))
});
this.load(o.selected)
}$(window).bind("unload",function(){self.lis.add(self.anchors).unbind(".tabs");
self.lis=self.anchors=self.panels=null
})
}else{o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))
}this.element[o.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");
if(o.cookie){this._cookie(o.selected,o.cookie)
}for(var i=0,li;
(li=this.lis[i]);
i++){$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")
}if(o.cache===false){this.anchors.removeData("cache.tabs")
}this.lis.add(this.anchors).unbind(".tabs");
if(o.event!=="mouseover"){var addState=function(state,el){if(el.is(":not(.ui-state-disabled)")){el.addClass("ui-state-"+state)
}};
var removeState=function(state,el){el.removeClass("ui-state-"+state)
};
this.lis.bind("mouseover.tabs",function(){addState("hover",$(this))
});
this.lis.bind("mouseout.tabs",function(){removeState("hover",$(this))
});
this.anchors.bind("focus.tabs",function(){addState("focus",$(this).closest("li"))
});
this.anchors.bind("blur.tabs",function(){removeState("focus",$(this).closest("li"))
})
}var hideFx,showFx;
if(o.fx){if($.isArray(o.fx)){hideFx=o.fx[0];
showFx=o.fx[1]
}else{hideFx=showFx=o.fx
}}function resetStyle($el,fx){$el.css("display","");
if(!$.support.opacity&&fx.opacity){$el[0].style.removeAttribute("filter")
}}var showTab=showFx?function(clicked,$show){$(clicked).closest("li").addClass("ui-tabs-selected ui-state-active");
$show.hide().removeClass("ui-tabs-hide").animate(showFx,showFx.duration||"normal",function(){resetStyle($show,showFx);
self._trigger("show",null,self._ui(clicked,$show[0]))
})
}:function(clicked,$show){$(clicked).closest("li").addClass("ui-tabs-selected ui-state-active");
$show.removeClass("ui-tabs-hide");
self._trigger("show",null,self._ui(clicked,$show[0]))
};
var hideTab=hideFx?function(clicked,$hide){$hide.animate(hideFx,hideFx.duration||"normal",function(){self.lis.removeClass("ui-tabs-selected ui-state-active");
$hide.addClass("ui-tabs-hide");
resetStyle($hide,hideFx);
self.element.dequeue("tabs")
})
}:function(clicked,$hide,$show){self.lis.removeClass("ui-tabs-selected ui-state-active");
$hide.addClass("ui-tabs-hide");
self.element.dequeue("tabs")
};
this.anchors.bind(o.event+".tabs",function(){var el=this,$li=$(el).closest("li"),$hide=self.panels.filter(":not(.ui-tabs-hide)"),$show=self.element.find(self._sanitizeSelector(el.hash));
if(($li.hasClass("ui-tabs-selected")&&!o.collapsible)||$li.hasClass("ui-state-disabled")||$li.hasClass("ui-state-processing")||self.panels.filter(":animated").length||self._trigger("select",null,self._ui(this,$show[0]))===false){this.blur();
return false
}o.selected=self.anchors.index(this);
self.abort();
if(o.collapsible){if($li.hasClass("ui-tabs-selected")){o.selected=-1;
if(o.cookie){self._cookie(o.selected,o.cookie)
}self.element.queue("tabs",function(){hideTab(el,$hide)
}).dequeue("tabs");
this.blur();
return false
}else{if(!$hide.length){if(o.cookie){self._cookie(o.selected,o.cookie)
}self.element.queue("tabs",function(){showTab(el,$show)
});
self.load(self.anchors.index(this));
this.blur();
return false
}}}if(o.cookie){self._cookie(o.selected,o.cookie)
}if($show.length){if($hide.length){self.element.queue("tabs",function(){hideTab(el,$hide)
})
}self.element.queue("tabs",function(){showTab(el,$show)
});
self.load(self.anchors.index(this))
}else{throw"jQuery UI Tabs: Mismatching fragment identifier."
}if($.browser.msie){this.blur()
}});
this.anchors.bind("click.tabs",function(){return false
})
},_getIndex:function(index){if(typeof index=="string"){index=this.anchors.index(this.anchors.filter("[href$="+index+"]"))
}return index
},destroy:function(){var o=this.options;
this.abort();
this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");
this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.anchors.each(function(){var href=$.data(this,"href.tabs");
if(href){this.href=href
}var $this=$(this).unbind(".tabs");
$.each(["href","load","cache"],function(i,prefix){$this.removeData(prefix+".tabs")
})
});
this.lis.unbind(".tabs").add(this.panels).each(function(){if($.data(this,"destroy.tabs")){$(this).remove()
}else{$(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))
}});
if(o.cookie){this._cookie(null,o.cookie)
}return this
},add:function(url,label,index){if(index===undefined){index=this.anchors.length
}var self=this,o=this.options,$li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label)),id=!url.indexOf("#")?url.replace("#",""):this._tabId($("a",$li)[0]);
$li.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);
var $panel=self.element.find("#"+id);
if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).data("destroy.tabs",true)
}$panel.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");
if(index>=this.lis.length){$li.appendTo(this.list);
$panel.appendTo(this.list[0].parentNode)
}else{$li.insertBefore(this.lis[index]);
$panel.insertBefore(this.panels[index])
}o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n
});
this._tabify();
if(this.anchors.length==1){o.selected=0;
$li.addClass("ui-tabs-selected ui-state-active");
$panel.removeClass("ui-tabs-hide");
this.element.queue("tabs",function(){self._trigger("show",null,self._ui(self.anchors[0],self.panels[0]))
});
this.load(0)
}this._trigger("add",null,this._ui(this.anchors[index],this.panels[index]));
return this
},remove:function(index){index=this._getIndex(index);
var o=this.options,$li=this.lis.eq(index).remove(),$panel=this.panels.eq(index).remove();
if($li.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(index+(index+1<this.anchors.length?1:-1))
}o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index
}),function(n,i){return n>=index?--n:n
});
this._tabify();
this._trigger("remove",null,this._ui($li.find("a")[0],$panel[0]));
return this
},enable:function(index){index=this._getIndex(index);
var o=this.options;
if($.inArray(index,o.disabled)==-1){return
}this.lis.eq(index).removeClass("ui-state-disabled");
o.disabled=$.grep(o.disabled,function(n,i){return n!=index
});
this._trigger("enable",null,this._ui(this.anchors[index],this.panels[index]));
return this
},disable:function(index){index=this._getIndex(index);
var self=this,o=this.options;
if(index!=o.selected){this.lis.eq(index).addClass("ui-state-disabled");
o.disabled.push(index);
o.disabled.sort();
this._trigger("disable",null,this._ui(this.anchors[index],this.panels[index]))
}return this
},select:function(index){index=this._getIndex(index);
if(index==-1){if(this.options.collapsible&&this.options.selected!=-1){index=this.options.selected
}else{return this
}}this.anchors.eq(index).trigger(this.options.event+".tabs");
return this
},load:function(index){index=this._getIndex(index);
var self=this,o=this.options,a=this.anchors.eq(index)[0],url=$.data(a,"load.tabs");
this.abort();
if(!url||this.element.queue("tabs").length!==0&&$.data(a,"cache.tabs")){this.element.dequeue("tabs");
return
}this.lis.eq(index).addClass("ui-state-processing");
if(o.spinner){var span=$("span",a);
span.data("label.tabs",span.html()).html(o.spinner)
}this.xhr=$.ajax($.extend({},o.ajaxOptions,{url:url,success:function(r,s){self.element.find(self._sanitizeSelector(a.hash)).html(r);
self._cleanup();
if(o.cache){$.data(a,"cache.tabs",true)
}self._trigger("load",null,self._ui(self.anchors[index],self.panels[index]));
try{o.ajaxOptions.success(r,s)
}catch(e){}},error:function(xhr,s,e){self._cleanup();
self._trigger("load",null,self._ui(self.anchors[index],self.panels[index]));
try{o.ajaxOptions.error(xhr,s,index,a)
}catch(e){}}}));
self.element.dequeue("tabs");
return this
},abort:function(){this.element.queue([]);
this.panels.stop(false,true);
this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));
if(this.xhr){this.xhr.abort();
delete this.xhr
}this._cleanup();
return this
},url:function(index,url){this.anchors.eq(index).removeData("cache.tabs").data("load.tabs",url);
return this
},length:function(){return this.anchors.length
}});
$.extend($.ui.tabs,{version:"1.8.16"});
$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){var self=this,o=this.options;
var rotate=self._rotate||(self._rotate=function(e){clearTimeout(self.rotation);
self.rotation=setTimeout(function(){var t=o.selected;
self.select(++t<self.anchors.length?t:0)
},ms);
if(e){e.stopPropagation()
}});
var stop=self._unrotate||(self._unrotate=!continuing?function(e){if(e.clientX){self.rotate(null)
}}:function(e){t=o.selected;
rotate()
});
if(ms){this.element.bind("tabsshow",rotate);
this.anchors.bind(o.event+".tabs",stop);
rotate()
}else{clearTimeout(self.rotation);
this.element.unbind("tabsshow",rotate);
this.anchors.unbind(o.event+".tabs",stop);
delete this._rotate;
delete this._unrotate
}return this
}})
})(jQuery);
(function($,undefined){$.extend($.ui,{datepicker:{version:"1.8.16"}});
var PROP_NAME="datepicker";
var dpuuid=new Date().getTime();
var instActive;
function Datepicker(){this.debug=false;
this._curInst=null;
this._keyEvent=false;
this._disabledInputs=[];
this._datepickerShowing=false;
this._inDialog=false;
this._mainDivId="ui-datepicker-div";
this._inlineClass="ui-datepicker-inline";
this._appendClass="ui-datepicker-append";
this._triggerClass="ui-datepicker-trigger";
this._dialogClass="ui-datepicker-dialog";
this._disableClass="ui-datepicker-disabled";
this._unselectableClass="ui-datepicker-unselectable";
this._currentClass="ui-datepicker-current-day";
this._dayOverClass="ui-datepicker-days-cell-over";
this.regional=[];
this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};
this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};
$.extend(this._defaults,this.regional[""]);
this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))
}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){if(this.debug){console.log.apply("",arguments)
}},_widgetDatepicker:function(){return this.dpDiv
},setDefaults:function(settings){extendRemove(this._defaults,settings||{});
return this
},_attachDatepicker:function(target,settings){var inlineSettings=null;
for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);
if(attrValue){inlineSettings=inlineSettings||{};
try{inlineSettings[attrName]=eval(attrValue)
}catch(err){inlineSettings[attrName]=attrValue
}}}var nodeName=target.nodeName.toLowerCase();
var inline=(nodeName=="div"||nodeName=="span");
if(!target.id){this.uuid+=1;
target.id="dp"+this.uuid
}var inst=this._newInst($(target),inline);
inst.settings=$.extend({},settings||{},inlineSettings||{});
if(nodeName=="input"){this._connectDatepicker(target,inst)
}else{if(inline){this._inlineDatepicker(target,inst)
}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");
return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')))}
},_connectDatepicker:function(target,inst){var input=$(target);
inst.append=$([]);
inst.trigger=$([]);
if(input.hasClass(this.markerClassName)){return
}this._attachments(input,inst);
input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value
}).bind("getData.datepicker",function(event,key){return this._get(inst,key)
});
this._autoSize(inst);
$.data(target,PROP_NAME,inst);
if(inst.settings.disabled){this._disableDatepicker(target)
}},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");
var isRTL=this._get(inst,"isRTL");
if(inst.append){inst.append.remove()
}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");
input[isRTL?"before":"after"](inst.append)
}input.unbind("focus",this._showDatepicker);
if(inst.trigger){inst.trigger.remove()
}var showOn=this._get(inst,"showOn");
if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)
}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");
var buttonImage=this._get(inst,"buttonImage");
inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));
input[isRTL?"before":"after"](inst.trigger);
inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker()
}else{$.datepicker._showDatepicker(input[0])
}return false
})
}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);
var dateFormat=this._get(inst,"dateFormat");
if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;
var maxI=0;
for(var i=0;
i<names.length;
i++){if(names[i].length>max){max=names[i].length;
maxI=i
}}return maxI
};
date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));
date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())
}inst.input.attr("size",this._formatDate(inst,date).length)
}},_inlineDatepicker:function(target,inst){var divSpan=$(target);
if(divSpan.hasClass(this.markerClassName)){return
}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value
}).bind("getData.datepicker",function(event,key){return this._get(inst,key)
});
$.data(target,PROP_NAME,inst);
this._setDate(inst,this._getDefaultDate(inst),true);
this._updateDatepicker(inst);
this._updateAlternate(inst);
if(inst.settings.disabled){this._disableDatepicker(target)
}inst.dpDiv.css("display","block")
},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;
if(!inst){this.uuid+=1;
var id="dp"+this.uuid;
this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);
$("body").append(this._dialogInput);
inst=this._dialogInst=this._newInst(this._dialogInput,false);
inst.settings={};
$.data(this._dialogInput[0],PROP_NAME,inst)
}extendRemove(inst.settings,settings||{});
date=(date&&date.constructor==Date?this._formatDate(inst,date):date);
this._dialogInput.val(date);
this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);
if(!this._pos){var browserWidth=document.documentElement.clientWidth;
var browserHeight=document.documentElement.clientHeight;
var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;
var scrollY=document.documentElement.scrollTop||document.body.scrollTop;
this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]
}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");
inst.settings.onSelect=onSelect;
this._inDialog=true;
this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);
if($.blockUI){$.blockUI(this.dpDiv)
}$.data(this._dialogInput[0],PROP_NAME,inst);
return this
},_destroyDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);
if(!$target.hasClass(this.markerClassName)){return
}var nodeName=target.nodeName.toLowerCase();
$.removeData(target,PROP_NAME);
if(nodeName=="input"){inst.append.remove();
inst.trigger.remove();
$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)
}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()
}}},_enableDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);
if(!$target.hasClass(this.markerClassName)){return
}var nodeName=target.nodeName.toLowerCase();
if(nodeName=="input"){target.disabled=false;
inst.trigger.filter("button").each(function(){this.disabled=false
}).end().filter("img").css({opacity:"1.0",cursor:""})
}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);
inline.children().removeClass("ui-state-disabled");
inline.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")
}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)
})
},_disableDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);
if(!$target.hasClass(this.markerClassName)){return
}var nodeName=target.nodeName.toLowerCase();
if(nodeName=="input"){target.disabled=true;
inst.trigger.filter("button").each(function(){this.disabled=true
}).end().filter("img").css({opacity:"0.5",cursor:"default"})
}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);
inline.children().addClass("ui-state-disabled");
inline.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")
}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)
});
this._disabledInputs[this._disabledInputs.length]=target
},_isDisabledDatepicker:function(target){if(!target){return false
}for(var i=0;
i<this._disabledInputs.length;
i++){if(this._disabledInputs[i]==target){return true
}}return false
},_getInst:function(target){try{return $.data(target,PROP_NAME)
}catch(err){throw"Missing instance data for this datepicker"
}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);
if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))
}var settings=name||{};
if(typeof name=="string"){settings={};
settings[name]=value
}if(inst){if(this._curInst==inst){this._hideDatepicker()
}var date=this._getDateDatepicker(target,true);
var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
extendRemove(inst.settings,settings);
if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate)
}if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate)
}this._attachments($(target),inst);
this._autoSize(inst);
this._setDate(inst,date);
this._updateAlternate(inst);
this._updateDatepicker(inst)
}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)
},_refreshDatepicker:function(target){var inst=this._getInst(target);
if(inst){this._updateDatepicker(inst)
}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);
if(inst){this._setDate(inst,date);
this._updateDatepicker(inst);
this._updateAlternate(inst)
}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);
if(inst&&!inst.inline){this._setDateFromField(inst,noDefault)
}return(inst?this._getDate(inst):null)
},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);
var handled=true;
var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");
inst._keyEvent=true;
if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();
handled=false;
break;
case 13:var sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);
if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])
}var onSelect=$.datepicker._get(inst,"onSelect");
if(onSelect){var dateStr=$.datepicker._formatDate(inst);
onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])
}else{$.datepicker._hideDatepicker()
}return false;
break;
case 27:$.datepicker._hideDatepicker();
break;
case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");
break;
case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");
break;
case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)
}handled=event.ctrlKey||event.metaKey;
break;
case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)
}handled=event.ctrlKey||event.metaKey;
break;
case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")
}handled=event.ctrlKey||event.metaKey;
if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")
}break;
case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")
}handled=event.ctrlKey||event.metaKey;
break;
case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")
}handled=event.ctrlKey||event.metaKey;
if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")
}break;
case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")
}handled=event.ctrlKey||event.metaKey;
break;
default:handled=false
}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)
}else{handled=false
}}if(handled){event.preventDefault();
event.stopPropagation()
}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);
if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));
var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);
return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1)
}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);
if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));
if(date){$.datepicker._setDateFromField(inst);
$.datepicker._updateAlternate(inst);
$.datepicker._updateDatepicker(inst)
}}catch(event){$.datepicker.log(event)
}}return true
},_showDatepicker:function(input){input=input.target||input;
if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]
}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return
}var inst=$.datepicker._getInst(input);
if($.datepicker._curInst&&$.datepicker._curInst!=inst){if($.datepicker._datepickerShowing){$.datepicker._triggerOnClose($.datepicker._curInst)
}$.datepicker._curInst.dpDiv.stop(true,true)
}var beforeShow=$.datepicker._get(inst,"beforeShow");
var beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};
if(beforeShowSettings===false){return
}extendRemove(inst.settings,beforeShowSettings);
inst.lastVal=null;
$.datepicker._lastInput=input;
$.datepicker._setDateFromField(inst);
if($.datepicker._inDialog){input.value=""
}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);
$.datepicker._pos[1]+=input.offsetHeight
}var isFixed=false;
$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";
return !isFixed
});
if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;
$.datepicker._pos[1]-=document.documentElement.scrollTop
}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};
$.datepicker._pos=null;
inst.dpDiv.empty();
inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});
$.datepicker._updateDatepicker(inst);
offset=$.datepicker._checkOffset(inst,offset,isFixed);
inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});
if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");
var duration=$.datepicker._get(inst,"duration");
var postProcess=function(){var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");
if(!!cover.length){var borders=$.datepicker._getBorders(inst.dpDiv);
cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})
}};
inst.dpDiv.zIndex($(input).zIndex()+1);
$.datepicker._datepickerShowing=true;
if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)
}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess)
}if(!showAnim||!duration){postProcess()
}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()
}$.datepicker._curInst=inst
}},_updateDatepicker:function(inst){var self=this;
self.maxRows=4;
var borders=$.datepicker._getBorders(inst.dpDiv);
instActive=inst;
inst.dpDiv.empty().append(this._generateHTML(inst));
var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");
if(!!cover.length){cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})
}inst.dpDiv.find("."+this._dayOverClass+" a").mouseover();
var numMonths=this._getNumberOfMonths(inst);
var cols=numMonths[1];
var width=17;
inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")
}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");
inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&inst.input[0]!=document.activeElement){inst.input.focus()
}if(inst.yearshtml){var origyearshtml=inst.yearshtml;
setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml)
}origyearshtml=inst.yearshtml=null
},0)
}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value
};
return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))]
},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();
var dpHeight=inst.dpDiv.outerHeight();
var inputWidth=inst.input?inst.input.outerWidth():0;
var inputHeight=inst.input?inst.input.outerHeight():0;
var viewWidth=document.documentElement.clientWidth+$(document).scrollLeft();
var viewHeight=document.documentElement.clientHeight+$(document).scrollTop();
offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);
offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;
offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;
offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);
offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);
return offset
},_findPos:function(obj){var inst=this._getInst(obj);
var isRTL=this._get(inst,"isRTL");
while(obj&&(obj.type=="hidden"||obj.nodeType!=1||$.expr.filters.hidden(obj))){obj=obj[isRTL?"previousSibling":"nextSibling"]
}var position=$(obj).offset();
return[position.left,position.top]
},_triggerOnClose:function(inst){var onClose=this._get(inst,"onClose");
if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])
}},_hideDatepicker:function(input){var inst=this._curInst;
if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return
}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");
var duration=this._get(inst,"duration");
var postProcess=function(){$.datepicker._tidyDialog(inst);
this._curInst=null
};
if($.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)
}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess)
}if(!showAnim){postProcess()
}$.datepicker._triggerOnClose(inst);
this._datepickerShowing=false;
this._lastInput=null;
if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
if($.blockUI){$.unblockUI();
$("body").append(this.dpDiv)
}}this._inDialog=false
}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")
},_checkExternalClick:function(event){if(!$.datepicker._curInst){return
}var $target=$(event.target);
if($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker()
}},_adjustDate:function(id,offset,period){var target=$(id);
var inst=this._getInst(target[0]);
if(this._isDisabledDatepicker(target[0])){return
}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);
this._updateDatepicker(inst)
},_gotoToday:function(id){var target=$(id);
var inst=this._getInst(target[0]);
if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;
inst.drawMonth=inst.selectedMonth=inst.currentMonth;
inst.drawYear=inst.selectedYear=inst.currentYear
}else{var date=new Date();
inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();
inst.drawYear=inst.selectedYear=date.getFullYear()
}this._notifyChange(inst);
this._adjustDate(target)
},_selectMonthYear:function(id,select,period){var target=$(id);
var inst=this._getInst(target[0]);
inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);
this._notifyChange(inst);
this._adjustDate(target)
},_selectDay:function(id,month,year,td){var target=$(id);
if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return
}var inst=this._getInst(target[0]);
inst.selectedDay=inst.currentDay=$("a",td).html();
inst.selectedMonth=inst.currentMonth=month;
inst.selectedYear=inst.currentYear=year;
this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))
},_clearDate:function(id){var target=$(id);
var inst=this._getInst(target[0]);
this._selectDate(target,"")
},_selectDate:function(id,dateStr){var target=$(id);
var inst=this._getInst(target[0]);
dateStr=(dateStr!=null?dateStr:this._formatDate(inst));
if(inst.input){inst.input.val(dateStr)
}this._updateAlternate(inst);
var onSelect=this._get(inst,"onSelect");
if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])
}else{if(inst.input){inst.input.trigger("change")
}}if(inst.inline){this._updateDatepicker(inst)
}else{this._hideDatepicker();
this._lastInput=inst.input[0];
if(typeof (inst.input[0])!="object"){inst.input.focus()
}this._lastInput=null
}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");
if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");
var date=this._getDate(inst);
var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));
$(altField).each(function(){$(this).val(dateStr)
})
}},noWeekends:function(date){var day=date.getDay();
return[(day>0&&day<6),""]
},iso8601Week:function(date){var checkDate=new Date(date.getTime());
checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));
var time=checkDate.getTime();
checkDate.setMonth(0);
checkDate.setDate(1);
return Math.floor(Math.round((time-checkDate)/86400000)/7)+1
},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"
}value=(typeof value=="object"?value.toString():value+"");
if(value==""){return null
}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;
shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));
var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;
var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;
var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;
var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;
var year=-1;
var month=-1;
var day=-1;
var doy=-1;
var literal=false;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++
}return matches
};
var getNumber=function(match){var isDoubled=lookAhead(match);
var size=(match=="@"?14:(match=="!"?20:(match=="y"&&isDoubled?4:(match=="o"?3:2))));
var digits=new RegExp("^\\d{1,"+size+"}");
var num=value.substring(iValue).match(digits);
if(!num){throw"Missing number at position "+iValue
}iValue+=num[0].length;
return parseInt(num[0],10)
};
var getName=function(match,shortNames,longNames){var names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]]
}).sort(function(a,b){return -(a[1].length-b[1].length)
});
var index=-1;
$.each(names,function(i,pair){var name=pair[1];
if(value.substr(iValue,name.length).toLowerCase()==name.toLowerCase()){index=pair[0];
iValue+=name.length;
return false
}});
if(index!=-1){return index+1
}else{throw"Unknown name at position "+iValue
}};
var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue
}iValue++
};
var iValue=0;
for(var iFormat=0;
iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false
}else{checkLiteral()
}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");
break;
case"D":getName("D",dayNamesShort,dayNames);
break;
case"o":doy=getNumber("o");
break;
case"m":month=getNumber("m");
break;
case"M":month=getName("M",monthNamesShort,monthNames);
break;
case"y":year=getNumber("y");
break;
case"@":var date=new Date(getNumber("@"));
year=date.getFullYear();
month=date.getMonth()+1;
day=date.getDate();
break;
case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);
year=date.getFullYear();
month=date.getMonth()+1;
day=date.getDate();
break;
case"'":if(lookAhead("'")){checkLiteral()
}else{literal=true
}break;
default:checkLiteral()
}}}if(iValue<value.length){throw"Extra/unparsed characters found in date: "+value.substring(iValue)
}if(year==-1){year=new Date().getFullYear()
}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)
}}if(doy>-1){month=1;
day=doy;
do{var dim=this._getDaysInMonth(year,month-1);
if(day<=dim){break
}month++;
day-=dim
}while(true)
}var date=this._daylightSavingAdjust(new Date(year,month-1,day));
if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"
}return date
},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return""
}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;
var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;
var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;
var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++
}return matches
};
var formatNumber=function(match,value,len){var num=""+value;
if(lookAhead(match)){while(num.length<len){num="0"+num
}}return num
};
var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])
};
var output="";
var literal=false;
if(date){for(var iFormat=0;
iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false
}else{output+=format.charAt(iFormat)
}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);
break;
case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);
break;
case"o":output+=formatNumber("o",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000),3);
break;
case"m":output+=formatNumber("m",date.getMonth()+1,2);
break;
case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);
break;
case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);
break;
case"@":output+=date.getTime();
break;
case"!":output+=date.getTime()*10000+this._ticksTo1970;
break;
case"'":if(lookAhead("'")){output+="'"
}else{literal=true
}break;
default:output+=format.charAt(iFormat)
}}}}return output
},_possibleChars:function(format){var chars="";
var literal=false;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++
}return matches
};
for(var iFormat=0;
iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false
}else{chars+=format.charAt(iFormat)
}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";
break;
case"D":case"M":return null;
case"'":if(lookAhead("'")){chars+="'"
}else{literal=true
}break;
default:chars+=format.charAt(iFormat)
}}}return chars
},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]
},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return
}var dateFormat=this._get(inst,"dateFormat");
var dates=inst.lastVal=inst.input?inst.input.val():null;
var date,defaultDate;
date=defaultDate=this._getDefaultDate(inst);
var settings=this._getFormatConfig(inst);
try{date=this.parseDate(dateFormat,dates,settings)||defaultDate
}catch(event){this.log(event);
dates=(noDefault?"":dates)
}inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();
inst.drawYear=inst.selectedYear=date.getFullYear();
inst.currentDay=(dates?date.getDate():0);
inst.currentMonth=(dates?date.getMonth():0);
inst.currentYear=(dates?date.getFullYear():0);
this._adjustInstDate(inst)
},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))
},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();
date.setDate(date.getDate()+offset);
return date
};
var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))
}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();
var year=date.getFullYear();
var month=date.getMonth();
var day=date.getDate();
var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;
var matches=pattern.exec(offset);
while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);
break;
case"w":case"W":day+=parseInt(matches[1],10)*7;
break;
case"m":case"M":month+=parseInt(matches[1],10);
day=Math.min(day,$.datepicker._getDaysInMonth(year,month));
break;
case"y":case"Y":year+=parseInt(matches[1],10);
day=Math.min(day,$.datepicker._getDaysInMonth(year,month));
break
}matches=pattern.exec(offset)
}return new Date(year,month,day)
};
var newDate=(date==null||date===""?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));
newDate=(newDate&&newDate.toString()=="Invalid Date"?defaultDate:newDate);
if(newDate){newDate.setHours(0);
newDate.setMinutes(0);
newDate.setSeconds(0);
newDate.setMilliseconds(0)
}return this._daylightSavingAdjust(newDate)
},_daylightSavingAdjust:function(date){if(!date){return null
}date.setHours(date.getHours()>12?date.getHours()+2:0);
return date
},_setDate:function(inst,date,noChange){var clear=!date;
var origMonth=inst.selectedMonth;
var origYear=inst.selectedYear;
var newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));
inst.selectedDay=inst.currentDay=newDate.getDate();
inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();
inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();
if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst)
}this._adjustInstDate(inst);
if(inst.input){inst.input.val(clear?"":this._formatDate(inst))
}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
return startDate
},_generateHTML:function(inst){var today=new Date();
today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));
var isRTL=this._get(inst,"isRTL");
var showButtonPanel=this._get(inst,"showButtonPanel");
var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");
var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");
var numMonths=this._getNumberOfMonths(inst);
var showCurrentAtPos=this._get(inst,"showCurrentAtPos");
var stepMonths=this._get(inst,"stepMonths");
var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);
var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
var drawMonth=inst.drawMonth-showCurrentAtPos;
var drawYear=inst.drawYear;
if(drawMonth<0){drawMonth+=12;
drawYear--
}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));
maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);
while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;
if(drawMonth<0){drawMonth=11;
drawYear--
}}}inst.drawMonth=drawMonth;
inst.drawYear=drawYear;
var prevText=this._get(inst,"prevText");
prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));
var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));
var nextText=this._get(inst,"nextText");
nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));
var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));
var currentText=this._get(inst,"currentText");
var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);
currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));
var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");
var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._gotoToday('#"+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";
var firstDay=parseInt(this._get(inst,"firstDay"),10);
firstDay=(isNaN(firstDay)?0:firstDay);
var showWeek=this._get(inst,"showWeek");
var dayNames=this._get(inst,"dayNames");
var dayNamesShort=this._get(inst,"dayNamesShort");
var dayNamesMin=this._get(inst,"dayNamesMin");
var monthNames=this._get(inst,"monthNames");
var monthNamesShort=this._get(inst,"monthNamesShort");
var beforeShowDay=this._get(inst,"beforeShowDay");
var showOtherMonths=this._get(inst,"showOtherMonths");
var selectOtherMonths=this._get(inst,"selectOtherMonths");
var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;
var defaultDate=this._getDefaultDate(inst);
var html="";
for(var row=0;
row<numMonths[0];
row++){var group="";
this.maxRows=4;
for(var col=0;
col<numMonths[1];
col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));
var cornerClass=" ui-corner-all";
var calender="";
if(isMultiMonth){calender+='<div class="ui-datepicker-group';
if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";
cornerClass=" ui-corner-"+(isRTL?"right":"left");
break;
case numMonths[1]-1:calender+=" ui-datepicker-group-last";
cornerClass=" ui-corner-"+(isRTL?"left":"right");
break;
default:calender+=" ui-datepicker-group-middle";
cornerClass="";
break
}}calender+='">'
}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");
for(var dow=0;
dow<7;
dow++){var day=(dow+firstDay)%7;
thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"
}calender+=thead+"</tr></thead><tbody>";
var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);
if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)
}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;
var curRows=Math.ceil((leadDays+daysInMonth)/7);
var numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);
this.maxRows=numRows;
var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));
for(var dRow=0;
dRow<numRows;
dRow++){calender+="<tr>";
var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");
for(var dow=0;
dow<7;
dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);
var otherMonth=(printDate.getMonth()!=drawMonth);
var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);
tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' onclick="DP_jQuery_'+dpuuid+".datepicker._selectDay('#"+inst.id+"',"+printDate.getMonth()+","+printDate.getFullYear()+', this);return false;"')+">"+(otherMonth&&!showOtherMonths?"&#xa0;":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";
printDate.setDate(printDate.getDate()+1);
printDate=this._daylightSavingAdjust(printDate)
}calender+=tbody+"</tr>"
}drawMonth++;
if(drawMonth>11){drawMonth=0;
drawYear++
}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");
group+=calender
}html+=group
}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");
inst._keyEvent=false;
return html
},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");
var changeYear=this._get(inst,"changeYear");
var showMonthAfterYear=this._get(inst,"showMonthAfterYear");
var html='<div class="ui-datepicker-title">';
var monthHtml="";
if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>"
}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);
var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);
monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'M');\" >";
for(var month=0;
month<12;
month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"
}}monthHtml+="</select>"
}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")
}if(!inst.yearshtml){inst.yearshtml="";
if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"
}else{var years=this._get(inst,"yearRange").split(":");
var thisYear=new Date().getFullYear();
var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));
return(isNaN(year)?thisYear:year)
};
var year=determineYear(years[0]);
var endYear=Math.max(year,determineYear(years[1]||""));
year=(minDate?Math.max(year,minDate.getFullYear()):year);
endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);
inst.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'Y');\" >";
for(;
year<=endYear;
year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"
}inst.yearshtml+="</select>";
html+=inst.yearshtml;
inst.yearshtml=null
}}html+=this._get(inst,"yearSuffix");
if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml
}html+="</div>";
return html
},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);
var month=inst.drawMonth+(period=="M"?offset:0);
var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);
var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));
inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();
inst.drawYear=inst.selectedYear=date.getFullYear();
if(period=="M"||period=="Y"){this._notifyChange(inst)
}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
var newDate=(minDate&&date<minDate?minDate:date);
newDate=(maxDate&&newDate>maxDate?maxDate:newDate);
return newDate
},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");
if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])
}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");
return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))
},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)
},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()
},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()
},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);
var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));
if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))
}return this._isInRange(inst,date)
},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()))
},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");
shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));
return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}
},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;
inst.currentMonth=inst.selectedMonth;
inst.currentYear=inst.selectedYear
}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))
}});
function bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
return dpDiv.bind("mouseout",function(event){var elem=$(event.target).closest(selector);
if(!elem.length){return
}elem.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")
}).bind("mouseover",function(event){var elem=$(event.target).closest(selector);
if($.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])||!elem.length){return
}elem.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
elem.addClass("ui-state-hover");
if(elem.hasClass("ui-datepicker-prev")){elem.addClass("ui-datepicker-prev-hover")
}if(elem.hasClass("ui-datepicker-next")){elem.addClass("ui-datepicker-next-hover")
}})
}function extendRemove(target,props){$.extend(target,props);
for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]
}}return target
}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))
}$.fn.datepicker=function(options){if(!this.length){return this
}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);
$.datepicker.initialized=true
}var otherArgs=Array.prototype.slice.call(arguments,1);
if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))
}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))
}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)
})
};
$.datepicker=new Datepicker();
$.datepicker.initialized=false;
$.datepicker.uuid=new Date().getTime();
$.datepicker.version="1.8.16";
window["DP_jQuery_"+dpuuid]=$
})(jQuery);
(function($,undefined){$.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});
this.valueDiv=$("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);
this.oldValue=this._value();
this._refreshValue()
},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();
$.Widget.prototype.destroy.apply(this,arguments)
},value:function(newValue){if(newValue===undefined){return this._value()
}this._setOption("value",newValue);
return this
},_setOption:function(key,value){if(key==="value"){this.options.value=value;
this._refreshValue();
if(this._value()===this.options.max){this._trigger("complete")
}}$.Widget.prototype._setOption.apply(this,arguments)
},_value:function(){var val=this.options.value;
if(typeof val!=="number"){val=0
}return Math.min(this.options.max,Math.max(this.min,val))
},_percentage:function(){return 100*this._value()/this.options.max
},_refreshValue:function(){var value=this.value();
var percentage=this._percentage();
if(this.oldValue!==value){this.oldValue=value;
this._trigger("change")
}this.valueDiv.toggle(value>this.min).toggleClass("ui-corner-right",value===this.options.max).width(percentage.toFixed(0)+"%");
this.element.attr("aria-valuenow",value)
}});
$.extend($.ui.progressbar,{version:"1.8.16"})
})(jQuery);
jQuery.effects||(function($,undefined){$.effects={};
$.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(i,attr){$.fx.step[attr]=function(fx){if(!fx.colorInit){fx.start=getColor(fx.elem,attr);
fx.end=getRGB(fx.end);
fx.colorInit=true
}fx.elem.style[attr]="rgb("+Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0],10),255),0)+","+Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1],10),255),0)+","+Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2],10),255),0)+")"
}
});
function getRGB(color){var result;
if(color&&color.constructor==Array&&color.length==3){return color
}if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)){return[parseInt(result[1],10),parseInt(result[2],10),parseInt(result[3],10)]
}if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)){return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55]
}if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)){return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)]
}if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)){return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)]
}if(result=/rgba\(0, 0, 0, 0\)/.exec(color)){return colors.transparent
}return colors[$.trim(color).toLowerCase()]
}function getColor(elem,attr){var color;
do{color=$.curCSS(elem,attr);
if(color!=""&&color!="transparent"||$.nodeName(elem,"body")){break
}attr="backgroundColor"
}while(elem=elem.parentNode);
return getRGB(color)
}var colors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};
var classAnimationActions=["add","remove","toggle"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
function getElementStyles(){var style=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,newStyle={},key,camelCase;
if(style&&style.length&&style[0]&&style[style[0]]){var len=style.length;
while(len--){key=style[len];
if(typeof style[key]=="string"){camelCase=key.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()
});
newStyle[camelCase]=style[key]
}}}else{for(key in style){if(typeof style[key]==="string"){newStyle[key]=style[key]
}}}return newStyle
}function filterStyles(styles){var name,value;
for(name in styles){value=styles[name];
if(value==null||$.isFunction(value)||name in shorthandStyles||(/scrollbar/).test(name)||(!(/color/i).test(name)&&isNaN(parseFloat(value)))){delete styles[name]
}}return styles
}function styleDifference(oldStyle,newStyle){var diff={_:0},name;
for(name in newStyle){if(oldStyle[name]!=newStyle[name]){diff[name]=newStyle[name]
}}return diff
}$.effects.animateClass=function(value,duration,easing,callback){if($.isFunction(easing)){callback=easing;
easing=null
}return this.queue(function(){var that=$(this),originalStyleAttr=that.attr("style")||" ",originalStyle=filterStyles(getElementStyles.call(this)),newStyle,className=that.attr("class");
$.each(classAnimationActions,function(i,action){if(value[action]){that[action+"Class"](value[action])
}});
newStyle=filterStyles(getElementStyles.call(this));
that.attr("class",className);
that.animate(styleDifference(originalStyle,newStyle),{queue:false,duration:duration,easing:easing,complete:function(){$.each(classAnimationActions,function(i,action){if(value[action]){that[action+"Class"](value[action])
}});
if(typeof that.attr("style")=="object"){that.attr("style").cssText="";
that.attr("style").cssText=originalStyleAttr
}else{that.attr("style",originalStyleAttr)
}if(callback){callback.apply(this,arguments)
}$.dequeue(this)
}})
})
};
$.fn.extend({_addClass:$.fn.addClass,addClass:function(classNames,speed,easing,callback){return speed?$.effects.animateClass.apply(this,[{add:classNames},speed,easing,callback]):this._addClass(classNames)
},_removeClass:$.fn.removeClass,removeClass:function(classNames,speed,easing,callback){return speed?$.effects.animateClass.apply(this,[{remove:classNames},speed,easing,callback]):this._removeClass(classNames)
},_toggleClass:$.fn.toggleClass,toggleClass:function(classNames,force,speed,easing,callback){if(typeof force=="boolean"||force===undefined){if(!speed){return this._toggleClass(classNames,force)
}else{return $.effects.animateClass.apply(this,[(force?{add:classNames}:{remove:classNames}),speed,easing,callback])
}}else{return $.effects.animateClass.apply(this,[{toggle:classNames},force,speed,easing])
}},switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.apply(this,[{add:add,remove:remove},speed,easing,callback])
}});
$.extend($.effects,{version:"1.8.16",save:function(element,set){for(var i=0;
i<set.length;
i++){if(set[i]!==null){element.data("ec.storage."+set[i],element[0].style[set[i]])
}}},restore:function(element,set){for(var i=0;
i<set.length;
i++){if(set[i]!==null){element.css(set[i],element.data("ec.storage."+set[i]))
}}},setMode:function(el,mode){if(mode=="toggle"){mode=el.is(":hidden")?"show":"hide"
}return mode
},getBaseline:function(origin,original){var y,x;
switch(origin[0]){case"top":y=0;
break;
case"middle":y=0.5;
break;
case"bottom":y=1;
break;
default:y=origin[0]/original.height
}switch(origin[1]){case"left":x=0;
break;
case"center":x=0.5;
break;
case"right":x=1;
break;
default:x=origin[1]/original.width
}return{x:x,y:y}
},createWrapper:function(element){if(element.parent().is(".ui-effects-wrapper")){return element.parent()
}var props={width:element.outerWidth(true),height:element.outerHeight(true),"float":element.css("float")},wrapper=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),active=document.activeElement;
element.wrap(wrapper);
if(element[0]===active||$.contains(element[0],active)){$(active).focus()
}wrapper=element.parent();
if(element.css("position")=="static"){wrapper.css({position:"relative"});
element.css({position:"relative"})
}else{$.extend(props,{position:element.css("position"),zIndex:element.css("z-index")});
$.each(["top","left","bottom","right"],function(i,pos){props[pos]=element.css(pos);
if(isNaN(parseInt(props[pos],10))){props[pos]="auto"
}});
element.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})
}return wrapper.css(props).show()
},removeWrapper:function(element){var parent,active=document.activeElement;
if(element.parent().is(".ui-effects-wrapper")){parent=element.parent().replaceWith(element);
if(element[0]===active||$.contains(element[0],active)){$(active).focus()
}return parent
}return element
},setTransition:function(element,list,factor,value){value=value||{};
$.each(list,function(i,x){unit=element.cssUnit(x);
if(unit[0]>0){value[x]=unit[0]*factor+unit[1]
}});
return value
}});
function _normalizeArguments(effect,options,speed,callback){if(typeof effect=="object"){callback=options;
speed=null;
options=effect;
effect=options.effect
}if($.isFunction(options)){callback=options;
speed=null;
options={}
}if(typeof options=="number"||$.fx.speeds[options]){callback=speed;
speed=options;
options={}
}if($.isFunction(speed)){callback=speed;
speed=null
}options=options||{};
speed=speed||options.duration;
speed=$.fx.off?0:typeof speed=="number"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;
callback=callback||options.complete;
return[effect,options,speed,callback]
}function standardSpeed(speed){if(!speed||typeof speed==="number"||$.fx.speeds[speed]){return true
}if(typeof speed==="string"&&!$.effects[speed]){return true
}return false
}$.fn.extend({effect:function(effect,options,speed,callback){var args=_normalizeArguments.apply(this,arguments),args2={options:args[1],duration:args[2],callback:args[3]},mode=args2.options.mode,effectMethod=$.effects[effect];
if($.fx.off||!effectMethod){if(mode){return this[mode](args2.duration,args2.callback)
}else{return this.each(function(){if(args2.callback){args2.callback.call(this)
}})
}}return effectMethod.call(this,args2)
},_show:$.fn.show,show:function(speed){if(standardSpeed(speed)){return this._show.apply(this,arguments)
}else{var args=_normalizeArguments.apply(this,arguments);
args[1].mode="show";
return this.effect.apply(this,args)
}},_hide:$.fn.hide,hide:function(speed){if(standardSpeed(speed)){return this._hide.apply(this,arguments)
}else{var args=_normalizeArguments.apply(this,arguments);
args[1].mode="hide";
return this.effect.apply(this,args)
}},__toggle:$.fn.toggle,toggle:function(speed){if(standardSpeed(speed)||typeof speed==="boolean"||$.isFunction(speed)){return this.__toggle.apply(this,arguments)
}else{var args=_normalizeArguments.apply(this,arguments);
args[1].mode="toggle";
return this.effect.apply(this,args)
}},cssUnit:function(key){var style=this.css(key),val=[];
$.each(["em","px","%","pt"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit]
}});
return val
}});
$.easing.jswing=$.easing.swing;
$.extend($.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return $.easing[$.easing.def](x,t,b,c,d)
},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b
},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b
},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b
}return -c/2*((--t)*(t-2)-1)+b
},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b
},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b
},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b
}return c/2*((t-=2)*t*t+2)+b
},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b
},easeOutQuart:function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b
},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b
}return -c/2*((t-=2)*t*t*t-2)+b
},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b
},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b
},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b
}return c/2*((t-=2)*t*t*t*t+2)+b
},easeInSine:function(x,t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+c+b
},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b
},easeInOutSine:function(x,t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b
},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b
},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b
},easeInOutExpo:function(x,t,b,c,d){if(t==0){return b
}if(t==d){return b+c
}if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b
}return c/2*(-Math.pow(2,-10*--t)+2)+b
},easeInCirc:function(x,t,b,c,d){return -c*(Math.sqrt(1-(t/=d)*t)-1)+b
},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b
},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1){return -c/2*(Math.sqrt(1-t*t)-1)+b
}return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b
},easeInElastic:function(x,t,b,c,d){var s=1.70158;
var p=0;
var a=c;
if(t==0){return b
}if((t/=d)==1){return b+c
}if(!p){p=d*0.3
}if(a<Math.abs(c)){a=c;
var s=p/4
}else{var s=p/(2*Math.PI)*Math.asin(c/a)
}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b
},easeOutElastic:function(x,t,b,c,d){var s=1.70158;
var p=0;
var a=c;
if(t==0){return b
}if((t/=d)==1){return b+c
}if(!p){p=d*0.3
}if(a<Math.abs(c)){a=c;
var s=p/4
}else{var s=p/(2*Math.PI)*Math.asin(c/a)
}return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b
},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;
var p=0;
var a=c;
if(t==0){return b
}if((t/=d/2)==2){return b+c
}if(!p){p=d*(0.3*1.5)
}if(a<Math.abs(c)){a=c;
var s=p/4
}else{var s=p/(2*Math.PI)*Math.asin(c/a)
}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b
}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b
},easeInBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158
}return c*(t/=d)*t*((s+1)*t-s)+b
},easeOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158
}return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b
},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158
}if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b
}return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b
},easeInBounce:function(x,t,b,c,d){return c-$.easing.easeOutBounce(x,d-t,0,c,d)+b
},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b
}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b
}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b
}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b
}}}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2){return $.easing.easeInBounce(x,t*2,0,c,d)*0.5+b
}return $.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b
}})
})(jQuery);
(function($,undefined){$.effects.blind=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right"];
var mode=$.effects.setMode(el,o.options.mode||"hide");
var direction=o.options.direction||"vertical";
$.effects.save(el,props);
el.show();
var wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});
var ref=(direction=="vertical")?"height":"width";
var distance=(direction=="vertical")?wrapper.height():wrapper.width();
if(mode=="show"){wrapper.css(ref,0)
}var animation={};
animation[ref]=mode=="show"?distance:0;
wrapper.animate(animation,o.duration,o.options.easing,function(){if(mode=="hide"){el.hide()
}$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(el[0],arguments)
}el.dequeue()
})
})
}
})(jQuery);
(function($,undefined){$.effects.bounce=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right"];
var mode=$.effects.setMode(el,o.options.mode||"effect");
var direction=o.options.direction||"up";
var distance=o.options.distance||20;
var times=o.options.times||5;
var speed=o.duration||250;
if(/show|hide/.test(mode)){props.push("opacity")
}$.effects.save(el,props);
el.show();
$.effects.createWrapper(el);
var ref=(direction=="up"||direction=="down")?"top":"left";
var motion=(direction=="up"||direction=="left")?"pos":"neg";
var distance=o.options.distance||(ref=="top"?el.outerHeight({margin:true})/3:el.outerWidth({margin:true})/3);
if(mode=="show"){el.css("opacity",0).css(ref,motion=="pos"?-distance:distance)
}if(mode=="hide"){distance=distance/(times*2)
}if(mode!="hide"){times--
}if(mode=="show"){var animation={opacity:1};
animation[ref]=(motion=="pos"?"+=":"-=")+distance;
el.animate(animation,speed/2,o.options.easing);
distance=distance/2;
times--
}for(var i=0;
i<times;
i++){var animation1={},animation2={};
animation1[ref]=(motion=="pos"?"-=":"+=")+distance;
animation2[ref]=(motion=="pos"?"+=":"-=")+distance;
el.animate(animation1,speed/2,o.options.easing).animate(animation2,speed/2,o.options.easing);
distance=(mode=="hide")?distance*2:distance/2
}if(mode=="hide"){var animation={opacity:0};
animation[ref]=(motion=="pos"?"-=":"+=")+distance;
el.animate(animation,speed/2,o.options.easing,function(){el.hide();
$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(this,arguments)
}})
}else{var animation1={},animation2={};
animation1[ref]=(motion=="pos"?"-=":"+=")+distance;
animation2[ref]=(motion=="pos"?"+=":"-=")+distance;
el.animate(animation1,speed/2,o.options.easing).animate(animation2,speed/2,o.options.easing,function(){$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(this,arguments)
}})
}el.queue("fx",function(){el.dequeue()
});
el.dequeue()
})
}
})(jQuery);
(function($,undefined){$.effects.clip=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right","height","width"];
var mode=$.effects.setMode(el,o.options.mode||"hide");
var direction=o.options.direction||"vertical";
$.effects.save(el,props);
el.show();
var wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});
var animate=el[0].tagName=="IMG"?wrapper:el;
var ref={size:(direction=="vertical")?"height":"width",position:(direction=="vertical")?"top":"left"};
var distance=(direction=="vertical")?animate.height():animate.width();
if(mode=="show"){animate.css(ref.size,0);
animate.css(ref.position,distance/2)
}var animation={};
animation[ref.size]=mode=="show"?distance:0;
animation[ref.position]=mode=="show"?0:distance/2;
animate.animate(animation,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){if(mode=="hide"){el.hide()
}$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(el[0],arguments)
}el.dequeue()
}})
})
}
})(jQuery);
(function($,undefined){$.effects.drop=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right","opacity"];
var mode=$.effects.setMode(el,o.options.mode||"hide");
var direction=o.options.direction||"left";
$.effects.save(el,props);
el.show();
$.effects.createWrapper(el);
var ref=(direction=="up"||direction=="down")?"top":"left";
var motion=(direction=="up"||direction=="left")?"pos":"neg";
var distance=o.options.distance||(ref=="top"?el.outerHeight({margin:true})/2:el.outerWidth({margin:true})/2);
if(mode=="show"){el.css("opacity",0).css(ref,motion=="pos"?-distance:distance)
}var animation={opacity:mode=="show"?1:0};
animation[ref]=(mode=="show"?(motion=="pos"?"+=":"-="):(motion=="pos"?"-=":"+="))+distance;
el.animate(animation,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){if(mode=="hide"){el.hide()
}$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(this,arguments)
}el.dequeue()
}})
})
}
})(jQuery);
(function($,undefined){$.effects.explode=function(o){return this.queue(function(){var rows=o.options.pieces?Math.round(Math.sqrt(o.options.pieces)):3;
var cells=o.options.pieces?Math.round(Math.sqrt(o.options.pieces)):3;
o.options.mode=o.options.mode=="toggle"?($(this).is(":visible")?"hide":"show"):o.options.mode;
var el=$(this).show().css("visibility","hidden");
var offset=el.offset();
offset.top-=parseInt(el.css("marginTop"),10)||0;
offset.left-=parseInt(el.css("marginLeft"),10)||0;
var width=el.outerWidth(true);
var height=el.outerHeight(true);
for(var i=0;
i<rows;
i++){for(var j=0;
j<cells;
j++){el.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(width/cells),top:-i*(height/rows)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:width/cells,height:height/rows,left:offset.left+j*(width/cells)+(o.options.mode=="show"?(j-Math.floor(cells/2))*(width/cells):0),top:offset.top+i*(height/rows)+(o.options.mode=="show"?(i-Math.floor(rows/2))*(height/rows):0),opacity:o.options.mode=="show"?0:1}).animate({left:offset.left+j*(width/cells)+(o.options.mode=="show"?0:(j-Math.floor(cells/2))*(width/cells)),top:offset.top+i*(height/rows)+(o.options.mode=="show"?0:(i-Math.floor(rows/2))*(height/rows)),opacity:o.options.mode=="show"?1:0},o.duration||500)
}}setTimeout(function(){o.options.mode=="show"?el.css({visibility:"visible"}):el.css({visibility:"visible"}).hide();
if(o.callback){o.callback.apply(el[0])
}el.dequeue();
$("div.ui-effects-explode").remove()
},o.duration||500)
})
}
})(jQuery);
(function($,undefined){$.effects.fade=function(o){return this.queue(function(){var elem=$(this),mode=$.effects.setMode(elem,o.options.mode||"hide");
elem.animate({opacity:mode},{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){(o.callback&&o.callback.apply(this,arguments));
elem.dequeue()
}})
})
}
})(jQuery);
(function($,undefined){$.effects.fold=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right"];
var mode=$.effects.setMode(el,o.options.mode||"hide");
var size=o.options.size||15;
var horizFirst=!(!o.options.horizFirst);
var duration=o.duration?o.duration/2:$.fx.speeds._default/2;
$.effects.save(el,props);
el.show();
var wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});
var widthFirst=((mode=="show")!=horizFirst);
var ref=widthFirst?["width","height"]:["height","width"];
var distance=widthFirst?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];
var percent=/([0-9]+)%/.exec(size);
if(percent){size=parseInt(percent[1],10)/100*distance[mode=="hide"?0:1]
}if(mode=="show"){wrapper.css(horizFirst?{height:0,width:size}:{height:size,width:0})
}var animation1={},animation2={};
animation1[ref[0]]=mode=="show"?distance[0]:size;
animation2[ref[1]]=mode=="show"?distance[1]:0;
wrapper.animate(animation1,duration,o.options.easing).animate(animation2,duration,o.options.easing,function(){if(mode=="hide"){el.hide()
}$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(el[0],arguments)
}el.dequeue()
})
})
}
})(jQuery);
(function($,undefined){$.effects.highlight=function(o){return this.queue(function(){var elem=$(this),props=["backgroundImage","backgroundColor","opacity"],mode=$.effects.setMode(elem,o.options.mode||"show"),animation={backgroundColor:elem.css("backgroundColor")};
if(mode=="hide"){animation.opacity=0
}$.effects.save(elem,props);
elem.show().css({backgroundImage:"none",backgroundColor:o.options.color||"#ffff99"}).animate(animation,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){(mode=="hide"&&elem.hide());
$.effects.restore(elem,props);
(mode=="show"&&!$.support.opacity&&this.style.removeAttribute("filter"));
(o.callback&&o.callback.apply(this,arguments));
elem.dequeue()
}})
})
}
})(jQuery);
(function($,undefined){$.effects.pulsate=function(o){return this.queue(function(){var elem=$(this),mode=$.effects.setMode(elem,o.options.mode||"show");
times=((o.options.times||5)*2)-1;
duration=o.duration?o.duration/2:$.fx.speeds._default/2,isVisible=elem.is(":visible"),animateTo=0;
if(!isVisible){elem.css("opacity",0).show();
animateTo=1
}if((mode=="hide"&&isVisible)||(mode=="show"&&!isVisible)){times--
}for(var i=0;
i<times;
i++){elem.animate({opacity:animateTo},duration,o.options.easing);
animateTo=(animateTo+1)%2
}elem.animate({opacity:animateTo},duration,o.options.easing,function(){if(animateTo==0){elem.hide()
}(o.callback&&o.callback.apply(this,arguments))
});
elem.queue("fx",function(){elem.dequeue()
}).dequeue()
})
}
})(jQuery);
(function($,undefined){$.effects.puff=function(o){return this.queue(function(){var elem=$(this),mode=$.effects.setMode(elem,o.options.mode||"hide"),percent=parseInt(o.options.percent,10)||150,factor=percent/100,original={height:elem.height(),width:elem.width()};
$.extend(o.options,{fade:true,mode:mode,percent:mode=="hide"?percent:100,from:mode=="hide"?original:{height:original.height*factor,width:original.width*factor}});
elem.effect("scale",o.options,o.duration,o.callback);
elem.dequeue()
})
};
$.effects.scale=function(o){return this.queue(function(){var el=$(this);
var options=$.extend(true,{},o.options);
var mode=$.effects.setMode(el,o.options.mode||"effect");
var percent=parseInt(o.options.percent,10)||(parseInt(o.options.percent,10)==0?0:(mode=="hide"?0:100));
var direction=o.options.direction||"both";
var origin=o.options.origin;
if(mode!="effect"){options.origin=origin||["middle","center"];
options.restore=true
}var original={height:el.height(),width:el.width()};
el.from=o.options.from||(mode=="show"?{height:0,width:0}:original);
var factor={y:direction!="horizontal"?(percent/100):1,x:direction!="vertical"?(percent/100):1};
el.to={height:original.height*factor.y,width:original.width*factor.x};
if(o.options.fade){if(mode=="show"){el.from.opacity=0;
el.to.opacity=1
}if(mode=="hide"){el.from.opacity=1;
el.to.opacity=0
}}options.from=el.from;
options.to=el.to;
options.mode=mode;
el.effect("size",options,o.duration,o.callback);
el.dequeue()
})
};
$.effects.size=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right","width","height","overflow","opacity"];
var props1=["position","top","bottom","left","right","overflow","opacity"];
var props2=["width","height","overflow"];
var cProps=["fontSize"];
var vProps=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];
var hProps=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];
var mode=$.effects.setMode(el,o.options.mode||"effect");
var restore=o.options.restore||false;
var scale=o.options.scale||"both";
var origin=o.options.origin;
var original={height:el.height(),width:el.width()};
el.from=o.options.from||original;
el.to=o.options.to||original;
if(origin){var baseline=$.effects.getBaseline(origin,original);
el.from.top=(original.height-el.from.height)*baseline.y;
el.from.left=(original.width-el.from.width)*baseline.x;
el.to.top=(original.height-el.to.height)*baseline.y;
el.to.left=(original.width-el.to.width)*baseline.x
}var factor={from:{y:el.from.height/original.height,x:el.from.width/original.width},to:{y:el.to.height/original.height,x:el.to.width/original.width}};
if(scale=="box"||scale=="both"){if(factor.from.y!=factor.to.y){props=props.concat(vProps);
el.from=$.effects.setTransition(el,vProps,factor.from.y,el.from);
el.to=$.effects.setTransition(el,vProps,factor.to.y,el.to)
}if(factor.from.x!=factor.to.x){props=props.concat(hProps);
el.from=$.effects.setTransition(el,hProps,factor.from.x,el.from);
el.to=$.effects.setTransition(el,hProps,factor.to.x,el.to)
}}if(scale=="content"||scale=="both"){if(factor.from.y!=factor.to.y){props=props.concat(cProps);
el.from=$.effects.setTransition(el,cProps,factor.from.y,el.from);
el.to=$.effects.setTransition(el,cProps,factor.to.y,el.to)
}}$.effects.save(el,restore?props:props1);
el.show();
$.effects.createWrapper(el);
el.css("overflow","hidden").css(el.from);
if(scale=="content"||scale=="both"){vProps=vProps.concat(["marginTop","marginBottom"]).concat(cProps);
hProps=hProps.concat(["marginLeft","marginRight"]);
props2=props.concat(vProps).concat(hProps);
el.find("*[width]").each(function(){child=$(this);
if(restore){$.effects.save(child,props2)
}var c_original={height:child.height(),width:child.width()};
child.from={height:c_original.height*factor.from.y,width:c_original.width*factor.from.x};
child.to={height:c_original.height*factor.to.y,width:c_original.width*factor.to.x};
if(factor.from.y!=factor.to.y){child.from=$.effects.setTransition(child,vProps,factor.from.y,child.from);
child.to=$.effects.setTransition(child,vProps,factor.to.y,child.to)
}if(factor.from.x!=factor.to.x){child.from=$.effects.setTransition(child,hProps,factor.from.x,child.from);
child.to=$.effects.setTransition(child,hProps,factor.to.x,child.to)
}child.css(child.from);
child.animate(child.to,o.duration,o.options.easing,function(){if(restore){$.effects.restore(child,props2)
}})
})
}el.animate(el.to,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){if(el.to.opacity===0){el.css("opacity",el.from.opacity)
}if(mode=="hide"){el.hide()
}$.effects.restore(el,restore?props:props1);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(this,arguments)
}el.dequeue()
}})
})
}
})(jQuery);
(function($,undefined){$.effects.shake=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right"];
var mode=$.effects.setMode(el,o.options.mode||"effect");
var direction=o.options.direction||"left";
var distance=o.options.distance||20;
var times=o.options.times||3;
var speed=o.duration||o.options.duration||140;
$.effects.save(el,props);
el.show();
$.effects.createWrapper(el);
var ref=(direction=="up"||direction=="down")?"top":"left";
var motion=(direction=="up"||direction=="left")?"pos":"neg";
var animation={},animation1={},animation2={};
animation[ref]=(motion=="pos"?"-=":"+=")+distance;
animation1[ref]=(motion=="pos"?"+=":"-=")+distance*2;
animation2[ref]=(motion=="pos"?"-=":"+=")+distance*2;
el.animate(animation,speed,o.options.easing);
for(var i=1;
i<times;
i++){el.animate(animation1,speed,o.options.easing).animate(animation2,speed,o.options.easing)
}el.animate(animation1,speed,o.options.easing).animate(animation,speed/2,o.options.easing,function(){$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(this,arguments)
}});
el.queue("fx",function(){el.dequeue()
});
el.dequeue()
})
}
})(jQuery);
(function($,undefined){$.effects.slide=function(o){return this.queue(function(){var el=$(this),props=["position","top","bottom","left","right"];
var mode=$.effects.setMode(el,o.options.mode||"show");
var direction=o.options.direction||"left";
$.effects.save(el,props);
el.show();
$.effects.createWrapper(el).css({overflow:"hidden"});
var ref=(direction=="up"||direction=="down")?"top":"left";
var motion=(direction=="up"||direction=="left")?"pos":"neg";
var distance=o.options.distance||(ref=="top"?el.outerHeight({margin:true}):el.outerWidth({margin:true}));
if(mode=="show"){el.css(ref,motion=="pos"?(isNaN(distance)?"-"+distance:-distance):distance)
}var animation={};
animation[ref]=(mode=="show"?(motion=="pos"?"+=":"-="):(motion=="pos"?"-=":"+="))+distance;
el.animate(animation,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){if(mode=="hide"){el.hide()
}$.effects.restore(el,props);
$.effects.removeWrapper(el);
if(o.callback){o.callback.apply(this,arguments)
}el.dequeue()
}})
})
}
})(jQuery);
(function($,undefined){$.effects.transfer=function(o){return this.queue(function(){var elem=$(this),target=$(o.options.to),endPosition=target.offset(),animation={top:endPosition.top,left:endPosition.left,height:target.innerHeight(),width:target.innerWidth()},startPosition=elem.offset(),transfer=$('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(o.options.className).css({top:startPosition.top,left:startPosition.left,height:elem.innerHeight(),width:elem.innerWidth(),position:"absolute"}).animate(animation,o.duration,o.options.easing,function(){transfer.remove();
(o.callback&&o.callback.apply(elem[0],arguments));
elem.dequeue()
})
})
}
})(jQuery)
})(window.$CQ||window.$||function(){throw new Error("jQuery is not defined")
}(),window.$CQ||window.$);
(function(B,A){(function(K,H){var V=K.fn.domManip,J="_tmplitem",W=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,R={},G={},a,Z={key:0,data:{}},Y=0,S=0,I=[];
function M(d,c,f,g){var e={data:g||(c?c.data:{}),_wrap:c?c._wrap:null,tmpl:null,parent:c||null,nodes:[],calls:E,nest:D,wrap:P,html:T,update:b};
if(d){K.extend(e,d,{nodes:[],parent:c})
}if(f){e.tmpl=f;
e._ctnt=e._ctnt||e.tmpl(K,e);
e.key=++Y;
(I.length?G:R)[Y]=e
}return e
}K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,d){K.fn[c]=function(e){var h=[],m=K(e),g,j,f,n,k=this.length===1&&this[0].parentNode;
a=R||{};
if(k&&k.nodeType===11&&k.childNodes.length===1&&m.length===1){m[d](this[0]);
h=this
}else{for(j=0,f=m.length;
j<f;
j++){S=j;
g=(j>0?this.clone(true):this).get();
K.fn[d].apply(K(m[j]),g);
h=h.concat(g)
}S=0;
h=this.pushStack(h,c,m.selector)
}n=a;
a=null;
K.tmpl.complete(n);
return h
}
});
K.fn.extend({tmpl:function(e,d,c){return K.tmpl(this[0],e,d,c)
},tmplItem:function(){return K.tmplItem(this[0])
},template:function(c){return K.template(c,this[0])
},domManip:function(e,j,k,d){if(e[0]&&e[0].nodeType){var h=K.makeArray(arguments),g=e.length,f=0,c;
while(f<g&&!(c=K.data(e[f++],"tmplItem"))){}if(g>1){h[0]=[K.makeArray(e)]
}if(c&&S){h[2]=function(l){K.tmpl.afterManip(this,l,k)
}
}V.apply(this,h)
}else{V.apply(this,arguments)
}S=0;
if(!a){K.tmpl.complete(R)
}return this
}});
K.extend({tmpl:function(e,h,g,d){var f,c=!d;
if(c){d=Z;
e=K.template[e]||K.template(null,e);
G={}
}else{if(!e){e=d.tmpl;
R[d.key]=d;
d.nodes=[];
if(d.wrapped){U(d,d.wrapped)
}return K(O(d,null,d.tmpl(K,d)))
}}if(!e){return[]
}if(typeof h==="function"){h=h.call(d||{})
}if(g&&g.wrapped){U(g,g.wrapped)
}f=K.isArray(h)?K.map(h,function(j){return j?M(g,d,e,j):null
}):[M(g,d,e,h)];
return c?K(O(d,null,f)):f
},tmplItem:function(d){var c;
if(d instanceof K){d=d[0]
}while(d&&d.nodeType===1&&!(c=K.data(d,"tmplItem"))&&(d=d.parentNode)){}return c||Z
},template:function(d,c){if(c){if(typeof c==="string"){c=N(c)
}else{if(c instanceof K){c=c[0]||{}
}}if(c.nodeType){c=K.data(c,"tmpl")||K.data(c,"tmpl",N(c.innerHTML))
}return typeof d==="string"?(K.template[d]=c):c
}return d?(typeof d!=="string"?K.template(null,d):(K.template[d]||K.template(null,W.test(d)?d:K(d)))):null
},encode:function(c){return(""+c).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")
}});
K.extend(K.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];",close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(c){R={}
},afterManip:function X(e,c,f){var d=c.nodeType===11?K.makeArray(c.childNodes):c.nodeType===1?[c]:[];
f.call(e,c);
Q(d);
S++
}});
function O(c,g,e){var f,d=e?K.map(e,function(h){return(typeof h==="string")?(c.key?h.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+J+'="'+c.key+'" $2'):h):O(h,c,h._ctnt)
}):c;
if(g){return d
}d=d.join("");
d.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(j,k,h,l){f=K(h).get();
Q(f);
if(k){f=C(k).concat(f)
}if(l){f=f.concat(C(l))
}});
return f?f:C(d)
}function C(d){var c=document.createElement("div");
c.innerHTML=d;
return K.makeArray(c.childNodes)
}function N(c){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('"+K.trim(c).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(l,e,j,f,g,m,h){var o=K.tmpl.tag[j],d,k,n;
if(!o){throw"Template command not found: "+j
}d=o._default||[];
if(m&&!/\w$/.test(g)){g+=m;
m=""
}if(g){g=L(g);
h=h?(","+L(h)+")"):(m?")":"");
k=m?(g.indexOf(".")>-1?g+m:("("+g+").call($item"+h)):g;
n=m?k:"(typeof("+g+")==='function'?("+g+").call($item):("+g+"))"
}else{n=k=d.$1||"null"
}f=L(f);
return"');"+o[e?"close":"open"].split("$notnull_1").join(g?"typeof("+g+")!=='undefined' && ("+g+")!=null":"true").split("$1a").join(n).split("$1").join(k).split("$2").join(f?f.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(q,p,r,s){s=s?(","+s+")"):(r?")":"");
return s?("("+p+").call($item"+s):q
}):(d.$2||""))+"_.push('"
})+"');}return _;")
}function U(d,c){d._wrap=O(d,true,K.isArray(c)?c:[W.test(c)?c:K(c).html()]).join("")
}function L(c){return c?c.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null
}function F(c){var d=document.createElement("div");
d.appendChild(c.cloneNode(true));
return d.innerHTML
}function Q(j){var n="_"+S,d,c,g={},h,f,e;
for(h=0,f=j.length;
h<f;
h++){if((d=j[h]).nodeType!==1){continue
}c=d.getElementsByTagName("*");
for(e=c.length-1;
e>=0;
e--){k(c[e])
}k(d)
}function k(r){var o,q=r,p,l,m;
if((m=r.getAttribute(J))){while(q.parentNode&&(q=q.parentNode).nodeType===1&&!(o=q.getAttribute(J))){}if(o!==m){q=q.parentNode?(q.nodeType===11?0:(q.getAttribute(J)||0)):0;
if(!(l=R[m])){l=G[m];
l=M(l,R[q]||G[q],null,true);
l.key=++Y;
R[Y]=l
}if(S){s(m)
}}r.removeAttribute(J)
}else{if(S&&(l=K.data(r,"tmplItem"))){s(l.key);
R[l.key]=l;
q=K.data(r.parentNode,"tmplItem");
q=q?q.key:0
}}if(l){p=l;
while(p&&p.key!=q){p.nodes.push(r);
p=p.parent
}delete l._ctnt;
delete l._wrap;
K.data(r,"tmplItem",l)
}function s(u){u=u+n;
l=g[u]=(g[u]||M(l,R[l.parent.key+n]||l.parent,null,true))
}}}function E(e,c,f,d){if(!e){return I.pop()
}I.push({_:e,tmpl:c,item:this,data:f,options:d})
}function D(c,e,d){return K.tmpl(K.template(c),e,d,this)
}function P(e,c){var d=e.options||{};
d.wrapped=c;
return K.tmpl(K.template(e.tmpl),e.data,d,e.item)
}function T(d,e){var c=this._wrap;
return K.map(K(K.isArray(c)?c.join(""):c).filter(d||"*"),function(f){return e?f.innerText||f.textContent:f.outerHTML||F(f)
})
}function b(){var c=this.nodes;
K.tmpl(null,null,null,this).insertBefore(c[0]);
K(c).remove()
}})(B)
})(window.$CQ||window.$||function(){throw new Error("jQuery is not defined")
}(),window.$CQ||window.$);
window.$=window._g.$;
var Utilities={copyToClipboard:function(A){window.prompt("Copy to clipboard: Ctrl+C, Enter",A);
return false
}};
var BCL=BCL||{};
BCL.onPlayerLoaded=function(A){BCL.player=brightcove.getExperience(A);
BCL.experienceModule=BCL.player.getModule(APIModules.EXPERIENCE)
};
BCL.onPlayerReady=function(A){BCL.videoPlayer=BCL.player.getModule(APIModules.VIDEO_PLAYER);
BCL.videoPlayer.addEventListener(BCMediaEvent.BEGIN,BCL.onMediaEventHandler);
BCL.videoPlayer.addEventListener(BCMediaEvent.COMPLETE,BCL.onMediaEventHandler);
BCL.videoPlayer.addEventListener(BCMediaEvent.CHANGE,BCL.onMediaEventHandler);
BCL.videoPlayer.addEventListener(BCMediaEvent.ERROR,BCL.onMediaEventHandler);
BCL.videoPlayer.addEventListener(BCMediaEvent.PLAY,BCL.onMediaEventHandler);
BCL.videoPlayer.addEventListener(BCMediaEvent.STOP,BCL.onMediaEventHandler);
BCL.addVideoPlayer(BCL.videoPlayer)
};
BCL.onPlayerError=function(A){console.log("Brightcove Error: ",A)
};
BCL.onMediaEventHandler=function(C){var D=BCL.videoPlayer.getCurrentVideo().id;
var B=BCL.videoPlayer.getCurrentVideo().displayName;
switch(C.type){case"mediaBegin":var A=BCLvideoPlayer.getCurrentVideo().length;
if(A>0){A=A/1000
}_gaq.push(["_trackEvent",location.pathname,C.type+" - "+A,B+" - "+D]);
break;
case"mediaPlay":_gaq.push(["_trackEvent",location.pathname,C.type+" - "+C.position,B+" - "+D]);
break;
case"mediaStop":_gaq.push(["_trackEvent",location.pathname,C.type+" - "+C.position,B+" - "+D]);
break;
case"mediaChange":_gaq.push(["_trackEvent",location.pathname,C.type+" - "+C.position,B+" - "+D]);
break;
case"mediaComplete":_gaq.push(["_trackEvent",location.pathname,C.type+" - "+C.position,B+" - "+D]);
break;
default:_gaq.push(["_trackEvent",location.pathname,C.type,B+" - "+D])
}};
BCL.pausePlayerByObjectId=function(B){for(var A=0;
A<BCL.listOfVideoPlayers.length;
A++){if(BCL.listOfVideoPlayers[A].callback.substring(0,B.length)===B){if(BCL.listOfVideoPlayers[A]!=null){BCL.listOfVideoPlayers[A].pause(true)
}break
}}};
BCL.findPlayerByObjectId=function(B){for(var A=0;
A<BCL.listOfVideoPlayers.length;
A++){if(BCL.listOfVideoPlayers[A].callback.substring(0,B.length)===B){if(BCL.listOfVideoPlayers[A]!=null){return BCL.listOfVideoPlayers[A]
}else{return null
}}}return null
};
BCL.addVideoPlayer=function(A){BCL.listOfVideoPlayers=BCL.listOfVideoPlayers||new Array();
BCL.listOfVideoPlayers[BCL.listOfVideoPlayers.length]=A
};
BCL.createVideo=function(F,A,C,H,G,B){var E='<object id="myExperience_'+B+'" class="BrightcoveExperience">';
E+='<param name="bgcolor" value="#FFFFFF" />';
E+='<param name="width" value="'+F+'" />';
E+='<param name="height" value="'+A+'" />';
E+='<param name="playerID" value="'+C+'" />';
E+='<param name="playerKey" value="'+H+'" />';
E+='<param name="isVid" value="true" />';
E+='<param name="isUI" value="true" />';
E+='<param name="dynamicStreaming" value="true" />';
E+='<param name="@videoPlayer" value="'+G+'" />';
E+='<param name="autoStart" value="true" />';
E+='<param name="templateLoadHandler" value="BCL.onPlayerLoaded" />';
E+='<param name="templateReadyHandler" value="BCL.onPlayerReady" />';
E+='<param name="templateErrorHandler" value="BCL.onPlayerError" />';
E+='<param name="includeAPI" value="true" /> ';
E+='<param name="wmode" value="transparent" />';
if(window.location.protocol=="https:"){E+='<param name="secureConnections" value="true" />'
}E+="</object>";
var D=document.getElementById(B);
if(D===null){console.log("There is no containter for this video id: "+B)
}else{D.innerHTML=E
}};
BCL.brightcoveContainer="#lightbox-container .brightcove-container";
BCL.playInLightbox=function(){$(BCL.brightcoveContainer).each(function(){if($(this).attr("position")=="show"){BCL.createVideo($(this).attr("width"),$(this).attr("height"),$(this).attr("playerid"),$(this).attr("key"),$(this).attr("player"),$(this).attr("containerid"));
brightcove.createExperiences()
}})
};
var Carousel=Carousel||{};
Carousel.initialized=false;
Carousel.rotater=null;
Carousel.init=function(){if($("#carousel")!=null&&Carousel.initialized==false){Carousel.bannerNav();
Carousel.startRotation();
Carousel.initialized=true
}else{}};
Carousel.startRotation=function(){Carousel.rotater=setInterval(function(){Carousel.bannerRotate(false)
},8000)
};
Carousel.stopRotation=function(){clearInterval(Carousel.rotater)
};
Carousel.bannerNav=function(A){if(A){$("div.banner-home-dots").html("");
$("div.banner-home-dots").css("margin-bottom","0")
}else{$("div.banner-home-dots").html('<span class="banner-dots-left"></span><ul class="banner-dots"><li class="previous"></li></ul><span class="banner-dots-right"></span>');
$("div.banner-home-dots").css("margin-top","-17px");
$("ul.banner-home li").each(function(){bannerClass=$(this).attr("class");
$("ul.banner-dots").each(function(){$(this).append('<li class="'+bannerClass+'-dot"></li>')
})
});
$("ul.banner-dots").append('<li class="next"></li>');
$("div.banner-home-dots").append('<div class="clearBoth"></div>');
$("ul.banner-dots li").click(function(){Carousel.stopRotation();
var B=$(this).attr("class");
if(B=="previous"){if($(".banner-home li.active").prev().length==0){var C=$(".banner-home li").last()
}else{var C=$(".banner-home li.active").prev()
}if(typeof ntptEventTag=="function"){ntptEventTag("ev=banner-click&evdetail=previous")
}Carousel.bannerRotate(true,C)
}else{if(B=="next"){if(typeof ntptEventTag=="function"){ntptEventTag("ev=banner-click&evdetail=next")
}Carousel.bannerRotate(false)
}else{B=B.split("-dot");
if($(".banner-home li.active").hasClass(B[0])!=true){if(typeof ntptEventTag=="function"){ntptEventTag("ev=banner-click&evdetail="+B[0])
}Carousel.bannerRotate(true,$("."+B[0]))
}}}})
}};
Carousel.bannerRotate=function(B,C){if(typeof Hero!="undefined"){if($(Hero.selector)!=null){$(Hero.selector).each(function(){var G=$(this).find(".hero-content-container");
var F=G.parent();
var E=F.height();
F.children(".hero-brightcove-video").animate({height:E},400,function(){$(this).remove();
G.show();
if(Carousel!=null){Carousel.startRotation()
}})
})
}}if(!B){if($(".banner-home li.active").next().length==0){var C=$(".banner-home li").first()
}else{var C=$(".banner-home li.active").next()
}}var A=$(".banner-home li.active");
$(".banner-dots li.active").removeClass("active");
var D=false;
A.prevAll().each(function(){if($(this).attr("class")==C.attr("class")){D=true
}});
(D)?A.css("margin-top","-340px"):C.css("margin-top","-340px");
C.fadeIn(800);
dotClass="."+C.attr("class")+"-dot";
$(dotClass).addClass("active");
A.fadeOut(500,function(){$(this).removeClass("active");
$(this).hide();
$(this).css("margin-top","0");
C.css("margin-top","0");
C.addClass("active")
})
};
var Hero=Hero||{selector:".hero",inlineVideoSelector:"a[rel='inline-video']",init:function(){$(Hero.selector).each(function(){if($(this).attr("javascript")==null&&$(this).attr("javascript")!="enabled"){Hero.inlineVideo($(this))
}$(this).attr("javascript","enabled")
})
},inlineVideo:function(A){$(A).find(Hero.inlineVideoSelector).each(function(){$(this).click(function(){var C=$(this).attr("href").split("#")[1];
if(C!=null&&C!=""&&($(A).has("#"+C).length?true:false)){var I=$(A).closest(".carousel");
if(I!=null){if(typeof Carousel!="undefined"){Carousel.stopRotation()
}}var H=$(A).find(".hero-content-container");
var E=H.parent();
var B=E.height();
var G="<a href='#' class='brightcove-close'>close</a>";
var F=$(A).find("#"+C);
var D=F.clone().addClass("container").addClass("hero-brightcove-video").css("position","relative").append(G).appendTo(E);
H.hide();
D.slideDown(800,function(){});
D.find("a.brightcove-close").unbind("click").click(function(){E.children(".hero-brightcove-video").animate({height:B},400,function(){$(this).remove();
H.show();
if(typeof Carousel!="undefined"){Carousel.startRotation()
}});
return false
})
}return false
})
})
}};
var StickyHeader={init:function(){var B=$("#action-header");
if(B.hasClass("active")){var C=$(".content-body.container");
if(B.offset()){var A=B.offset().top;
var E=B.css("height");
if(E=="auto"){E="60px"
}E=parseInt(E)+parseInt(B.css("padding-top"))+parseInt(B.css("padding-bottom"));
var D=C.css("margin-top");
$(window).scroll(function(){var F=A-$(window).scrollTop();
if(F<0){C.css("margin-top",E+"px");
B.addClass("fixed-nav")
}else{B.removeClass("fixed-nav");
C.css("margin-top",D)
}})
}}}};
var MultiBlockquote={imagePropertyKey:"data-multiblockquote-image",quotePropertyKey:"data-multiblockquote-quote",init:function(){$("["+MultiBlockquote.imagePropertyKey+"]").each(function(){var A=$(this).attr(MultiBlockquote.imagePropertyKey);
MultiBlockquote.setupBottomMargin(A);
MultiBlockquote.setupHover(A)
})
},setupHover:function(A){$("["+MultiBlockquote.quotePropertyKey+'="'+A+'"] li').each(function(){if($(this).index()==0){$(this).show()
}else{$(this).hide()
}});
$("["+MultiBlockquote.imagePropertyKey+'="'+A+'"] li').hover(function(){var B=$(this).index();
$("["+MultiBlockquote.quotePropertyKey+'="'+A+'"] li').each(function(){if($(this).index()==B){$(this).show()
}else{$(this).hide()
}})
})
},setupBottomMargin:function(B){Array.max=function(C){return Math.max.apply(Math,C)
};
var A=new Array();
$("["+MultiBlockquote.quotePropertyKey+'="'+B+'"] li').each(function(C){A.push($(this).height())
});
$("["+MultiBlockquote.quotePropertyKey+'="'+B+'"] li').each(function(C){if((Array.max(A)-$(this).height())>0){$(this).css("margin-bottom",(Array.max(A)-$(this).height()))
}})
}};
var ScheduledComponent={};
ScheduledComponent.loadScheduledComponents=function(){$("a.scheduler[href!='']").each(function(){var A=$(this);
var B=$("<div />");
B.load(A.attr("href"),function(){Lightbox.init()
});
A.after(B)
})
};
$(function(){ScheduledComponent.loadScheduledComponents()
});
var Accordion={classNames:{categories:{active:"minus",inactive:"plus"}},init:function(){$(".accordian-container").each(function(){if($(this).hasClass("active")){Accordion.hideAll();
Accordion.clickPlus();
Accordion.clickQuestion();
jQuery("#hideAll").unbind("click").bind("click",(function(A){A.preventDefault();
Accordion.hideAll()
}));
jQuery("#showAll").unbind("click").bind("click",(function(A){A.preventDefault();
Accordion.showAll()
}))
}})
},hideAll:function(){jQuery(".category").hide();
jQuery(".accordionentry ."+Accordion.classNames.categories.active).removeClass(Accordion.classNames.categories.active).addClass(Accordion.classNames.categories.inactive)
},showAll:function(){jQuery(".category").show();
jQuery(".accordionentry ."+Accordion.classNames.categories.inactive).removeClass(Accordion.classNames.categories.inactive).addClass(Accordion.classNames.categories.active)
},clickPlus:function(){jQuery(".accordionentry .text.plus").each(function(){jQuery(this).unbind("click").bind("click",(function(){var A=jQuery(this)[0];
if(A.className.indexOf(Accordion.classNames.categories.active)>=0){jQuery(this).removeClass(Accordion.classNames.categories.active).addClass(Accordion.classNames.categories.inactive)
}else{jQuery(this).removeClass(Accordion.classNames.categories.inactive).addClass(Accordion.classNames.categories.active)
}jQuery(this).next("div").slideToggle();
return false
}))
})
},clickQuestion:function(){jQuery(".accordionentry .question").each(function(){jQuery(this).unbind("click").bind("click",(function(){jQuery(this).next("div").slideToggle();
return false
}))
})
}};
var CaseStudy={selector:"#use-case",init:function(){$(CaseStudy.selector).change(function(B){var A=this.value;
$("#case-study-filter-body > div > div").fadeOut();
$(".hideContent").addClass("hiddenContent");
if(A=="viewAll"){$("#case-study-filter-body .parsys").children().fadeIn();
$(".hideContent").removeClass("hiddenContent")
}else{$("#"+A).parent().fadeIn()
}$("#oo_feedback_float").parent().css("height","0")
})
}};
var UtilityNavigation=UtilityNavigation||{selector:".utilityNavigation",salesChatAsyncSelector:".utility-navigation-sales-chat-async",init:function(){var A=$(UtilityNavigation.salesChatAsyncSelector).attr("href");
$(UtilityNavigation.selector).find("a.scheduled-sales-chat").each(function(){var B=$(this);
if(B.attr("initialized")!="true"){$.getJSON(A,function(F){if(F!=null){if(F.scheduled==="false"||F.scheduled===false){var D=$(UtilityNavigation.salesChatAsyncSelector).attr("editmode");
if(D==="true"||D===true){B.addClass("offtime")
}else{B.hide();
var C=B.parent();
var E=C.next();
if(E!=null&&(E.hasClass("splitter")||E.find("a").html().charAt(0)=="|")){E.hide()
}}}else{}}});
B.attr("initialized","true")
}})
}};
var DotDotDot=DotDotDot||{init:function(){$(".ellipsis").each(function(){$(this).dotdotdot({ellipsis:"... ",debug:false});
$(this).removeClass("ellipsis")
})
}};
var Resource=Resource||{resourceServletPath:null,resourceServletPathSelector:"resource-servlet-path",resourceContainerSelector:"resource-container",resourceTypeContainerSelector:"resource-type-container",resourceTypeLinkSelector:".resource-type-link",resourceDefaultLanguage:"default-language",resourceLanguageSelector:".resource-language-link",resourceServletPathSelector:"resource-servlet-path",categoriesContainerSelector:"resource-categories-container",featuredContainerSelector:"resource-featured-container",nextWebinarContainerSelector:"resource-next-webinar-container",resourceTypeSelector:"resource-type",resourceCategoriesSelector:"resource-categories",resourceFeaturedSelector:"resource-featured",resourceLimitSelector:"resource-limit",paginationIndexSelector:"pagination-index",orderBy:"order-by",resourceLanguages:"allowed-language",webinarUpcomingOnly:"webinar-upcoming-only",init:function(A){$("["+Resource.resourceContainerSelector+"]").each(function(){var F=$(this);
if(F.attr("initialized")!="true"||A===true){if(Resource.resourceServletPath==null||Resource.resourceServletPath==""){Resource.resourceServletPath=$(this).attr(Resource.resourceServletPathSelector)
}var D=$(this).attr(Resource.resourceDefaultLanguage);
var E=$(this).find("["+Resource.resourceTypeContainerSelector+"]");
$(this).find(Resource.resourceTypeLinkSelector).each(function(){$(this).unbind("click").click(function(){var H=$(this);
if(H.hasClass("disabled")){}else{$(F).find(Resource.resourceTypeLinkSelector).each(function(){if($(this).attr("href")===$(H).attr("href")){$(this).addClass("disabled")
}else{$(this).removeClass("disabled")
}});
var G=$(this).attr("href").split("#")[1];
$(E).each(function(){if($(this).attr("id")===G){Resource.refreshResourceCategories($(this));
Resource.refreshResourceFeatured($(this));
Resource.refreshResourceNextWebinar($(this));
$(this).show()
}else{$(this).hide()
}})
}return false
})
});
var B=$(this).find(Resource.resourceLanguageSelector);
$(B).each(function(){$(this).unbind("click").click(function(){var G=D;
$(B).each(function(){if($(this).is(":checked")){G+=","+$(this).val()
}});
$(E).each(function(){currentResouceTypeContainer=$(this);
$(currentResouceTypeContainer).attr(Resource.resourceLanguages,G);
if($(this).is(":visible")){Resource.refreshResourceCategories(currentResouceTypeContainer);
Resource.refreshResourceFeatured(currentResouceTypeContainer);
Resource.refreshResourceNextWebinar(currentResouceTypeContainer)
}})
})
});
var C=true;
$(E).each(function(){var G=window.location.hash;
if($(this).attr(Resource.resourceTypeContainerSelector)===G.split("#")[1]){var H=$(this);
C=false;
Resource.refreshResourceCategories(H);
Resource.refreshResourceFeatured(H);
Resource.refreshResourceNextWebinar(H);
$(H).show();
$(F).find(Resource.resourceTypeLinkSelector).each(function(){if($(this).attr("href").split("#")[1]===H.attr("id")){$(this).addClass("disabled")
}})
}$(this).attr(Resource.resourceLanguages,D)
});
$(F).find(Resource.resourceTypeLinkSelector).each(function(){if($(this).hasClass("disabled")){var G=$(this).attr("href").split("#")[1];
$(E).each(function(){if($(this).attr("id")===G){var H=$(this);
C=false;
Resource.refreshResourceCategories(H);
Resource.refreshResourceFeatured(H);
Resource.refreshResourceNextWebinar(H);
$(H).show()
}})
}});
if(C){$(E).each(function(){var G=$(this);
Resource.refreshResourceCategories(G);
Resource.refreshResourceFeatured(G);
Resource.refreshResourceNextWebinar(G);
$(G).show();
$(F).find(Resource.resourceTypeLinkSelector).each(function(){if($(this).attr("href").split("#")[1]===G.attr("id")){$(this).addClass("disabled")
}});
return false
})
}$(this).attr("initialized","true")
}})
},refreshResourceCategories:function(A){var B=$(A).attr(Resource.resourceLanguages);
$(A).find("["+Resource.categoriesContainerSelector+"]").each(function(){Resource.refreshCategoryContainer($(this),B)
})
},refreshResourceFeatured:function(A){var B=$(A).attr(Resource.resourceLanguages);
$(A).find("["+Resource.featuredContainerSelector+"]").each(function(){Resource.refreshFeaturedContainer($(this),B)
})
},refreshResourceNextWebinar:function(A){var B=$(A).attr(Resource.resourceLanguages);
$(A).find("["+Resource.nextWebinarContainerSelector+"]").each(function(){Resource.refreshNextWebinarContainer($(this),B)
})
},refreshCategoryContainer:function(I,F){var A=$(I).attr(Resource.categoriesContainerSelector);
var B=$(I).attr(Resource.resourceTypeSelector);
var E=$(I).attr(Resource.resourceCategoriesSelector);
var J=$(I).attr(Resource.resourceFeaturedSelector);
var D=$(I).attr(Resource.resourceLimitSelector);
var C=$(I).attr(Resource.paginationIndexSelector);
var H=$(I).attr(Resource.orderBy);
var G=$(I).attr(Resource.webinarUpcomingOnly);
Resource.categoriesQuery(A,B,E,J,F,D,C,H,G)
},refreshFeaturedContainer:function(A,F){var H=$(A).attr(Resource.featuredContainerSelector);
var B=$(A).attr(Resource.resourceTypeSelector);
var E=$(A).attr(Resource.resourceCategoriesSelector);
var I=$(A).attr(Resource.resourceFeaturedSelector);
var D=$(A).attr(Resource.resourceLimitSelector);
var C=$(A).attr(Resource.paginationIndexSelector);
var G=$(A).attr(Resource.orderBy);
Resource.featuredQuery(H,B,E,I,F,D,C,G)
},refreshNextWebinarContainer:function(B,E){var C=$(B).attr(Resource.nextWebinarContainerSelector);
var F=$(B).attr(Resource.resourceTypeSelector);
var G=$(B).attr(Resource.resourceCategoriesSelector);
var D=$(B).attr(Resource.resourceLimitSelector);
var H=$(B).attr(Resource.orderBy);
var A=$(B).attr(Resource.webinarUpcomingOnly);
Resource.nextWebinarQuery(C,F,G,E,D,H,A)
},categoriesQuery:function(A,B,E,I,F,D,C,H,G){$.getJSON(Resource.resourceServletPath,{resourceType:B,resourceCategories:E,resourceFeatured:I,resourceLanguages:F,resourceLimit:D,paginationIndex:C,orderBy:H,webinarUpcomingOnly:G},function(J){switch(B){case"ResourceDocument":Resource.ResourceDocument(A,J);
break;
case"ResourceWebinar":Resource.ResourceWebinar(A,J);
break;
case"ResourceVideo":Resource.ResourceVideo(A,J);
break;
default:console.error("Resource: Data retrieved but there is no matching resource type.");
break
}}).error(function(J){console.error("Resource: Could not get resource data.")
})
},featuredQuery:function(B,E,F,A,D,C,H,G){$.getJSON(Resource.resourceServletPath,{resourceType:E,resourceCategories:F,resourceFeatured:A,resourceLanguages:D,resourceLimit:C,paginationIndex:H,orderBy:G},function(I){Resource.Featured(B,I)
}).error(function(I){console.error("Resource: Could not get resource data.")
})
},nextWebinarQuery:function(B,E,F,D,C,G,A){$.getJSON(Resource.resourceServletPath,{resourceType:E,resourceCategories:F,resourceLanguages:D,resourceLimit:C,orderBy:G,webinarUpcomingOnly:A},function(H){Resource.NextWebinar(B,H)
}).error(function(H){console.error("Resource: Could not get resource data.")
})
},calculatePagination:function(C){var A="<div class='pagination-border'><ul class='pagination-container'>";
if(C.totalPages<7){for(var B=0;
B<C.totalPages;
B++){if(C.currentPage==B){A+="<li class='selected'><span>"+(C.currentPage+1)+"</span></li>"
}else{A+="<li><a href='#"+B+"'>"+(B+1)+"</a></li>"
}}}else{if((C.currentPage+5)>C.totalPages){A+="<li><a href='#"+(C.totalPages-5)+"'><span class='small-arrow-left'></span></a></li>";
A+="<li><a href='#0'><span>1</span></a></li>";
A+="<li><span>...</span></li>";
for(var B=C.totalPages-5;
B<C.totalPages;
B++){if(C.currentPage==B){A+="<li class='selected'><span>"+(C.currentPage+1)+"</span></li>"
}else{A+="<li><a href='#"+B+"'>"+(B+1)+"</a></li>"
}}}else{if((C.currentPage-4)<0){for(var B=0;
B<5;
B++){if(C.currentPage==B){A+="<li class='selected'><span>"+(C.currentPage+1)+"</span></li>"
}else{A+="<li><a href='#"+B+"'>"+(B+1)+"</a></li>"
}}A+="<li><span>...</span></li>";
A+="<li><a href='#"+(C.totalPages-1)+"'><span>"+C.totalPages+"</span></a></li>";
A+="<li><a href='#5'><span class='small-arrow-right'></span></a></li>"
}else{A+="<li><a href='#"+(((C.currentPage-2)<0)?0:(C.currentPage-2))+"'><span class='small-arrow-left'></span></a></li>";
A+="<li><a href='#0'><span>1</span></a></li>";
A+="<li><span>...</span></li>";
for(var B=C.currentPage-1;
B<C.currentPage+2;
B++){if(C.currentPage==B){A+="<li class='selected'><span>"+(C.currentPage+1)+"</span></li>"
}else{A+="<li><a href='#"+B+"'>"+(B+1)+"</a></li>"
}}A+="<li><span>...</span></li>";
A+="<li><a href='#"+(C.totalPages-1)+"'><span>"+C.totalPages+"</span></a></li>";
A+="<li><a href='#"+(((C.currentPage+2)>C.totalPages)?(C.totalPages-1):(C.currentPage+2))+"'><span class='small-arrow-right'></span></a></li>"
}}}A+="</ul><div class='clearBoth'></div></div>";
A+="<div class='clearBoth'></div>";
return A
},Featured:function(A,D){var E=$("#"+A);
if(D.list!=null&&D.list.length>0){var C="<div class='featured-container'>";
C+="<div class='start-gradient'></div>";
C+="<div class='end-gradient'></div>";
C+="<ul class='content-container'>";
for(var B=0;
B<D.list.length;
B++){C+="<li class='"+D.list[B].resourceType+"'>";
switch(D.list[B].resourceType){case"ResourceDocument":C+="<a href='"+D.list[B].path+"'>";
C+="<div class='thumbnail-container'>";
C+="<img src='"+D.list[B].thumbnailPath+"' />";
C+="<div class='featured-sprite-container'><div class='featured-sprite "+D.list[B].featured+"'></div></div>";
C+="</div>";
C+="</a>";
C+="<div class='arrow-container'><span class='small-right-arrow-orange'></span></div>";
C+="<div class='description-container'><p><a href='"+D.list[B].path+"' class='featured-link'><strong>"+D.list[B].title+"<strong></a></p>";
C+="<div class='clearBoth'></div>";
break;
case"ResourceWebinar":C+="<a href='"+D.list[B].path+"'>";
C+="<div class='thumbnail-container'>";
C+="<img src='"+D.list[B].authorThumbnailPath+"'/>";
C+="<div class='featured-sprite-container'><div class='featured-sprite "+D.list[B].featured+"'></div></div>";
C+="</div>";
C+="</a>";
C+="<div class='arrow-container'><span class='small-right-arrow-orange'></span></div>";
C+="<div class='description-container'><p><a href='"+D.list[B].path+"' class='featured-link'><strong>"+D.list[B].title+"<strong></a></p>";
C+="<div class='clearBoth'></div>";
break;
case"ResourceVideo":C+="<a href='"+D.list[B].path+"'>";
C+="<div class='thumbnail-container'>";
C+="<img src='"+D.list[B].thumbnailPath+"' />";
C+="<div class='video-play-sprite'></div>";
C+="<div class='video-duration'>"+D.list[B].videoLength+"</div>";
C+="<div class='featured-sprite-container'><div class='featured-sprite "+D.list[B].featured+"'></div></div>";
C+="</div>";
C+="</a>";
C+="<div class='arrow-container'><span class='small-right-arrow-orange'></span></div>";
C+="<div class='description-container'><p><a href='"+D.list[B].path+"' class='featured-link'><strong>"+D.list[B].title+"<strong></a></p>";
C+="<div class='clearBoth'></div>";
break;
default:break
}C+="</li>"
}C+="<div class='clearBoth'></div></ul></div>";
E.html(C);
if(typeof DotDotDot!="undefined"){DotDotDot.init()
}}else{E.hide()
}},NextWebinar:function(G,C){var F=$("#"+G);
var D=F.find(".webinar-title-placeholder");
var B=F.find(".webinar-author-title-placeholder");
var I=F.find(".webinar-author-description-placeholder");
var E=F.find(".webinar-thumbnail-container");
var H=F.find(".webinar-upcoming-long-placeholder");
var A=F.find(".webinar-registration-button");
if(C.list!=null&&C.list.length>0){D.html(C.list[0].title);
B.html(C.list[0].authorTitle);
I.html(C.list[0].authorDescription);
E.html("<img src='"+C.list[0].authorThumbnailPath+"'/>");
H.html(C.list[0].upcomingLong);
A.attr("href",C.list[0].path);
if(C.list[i].gated||C.list[i].registration){A.attr("target","_blank")
}}if(typeof DotDotDot!="undefined"){DotDotDot.init()
}},ResourceDocument:function(E,F){var B=$("#"+E);
var A=$("#"+E+"_pagination");
$(A).show();
if(F.totalPages>1){$(A).html(Resource.calculatePagination(F));
$(A).find("a").each(function(){$(this).click(function(){$(B).attr(Resource.paginationIndexSelector,$(this).attr("href").split("#")[1]);
var G=$(B).closest("["+Resource.resourceTypeContainerSelector+"]").attr(Resource.resourceLanguages);
Resource.refreshCategoryContainer(B,G);
return false
})
})
}else{$(A).html("");
$(A).hide()
}var D="<ul class='document-container'>";
for(var C=0;
C<F.list.length;
C++){if(C%2==0){D+="<li class='even'>"
}else{D+="<li class='odd'>"
}D+="<div class='title'>";
if(F.list[C].gated){D+="<a href='"+F.list[C].path+"' target='_blank'>"+F.list[C].title+"</a>"
}else{D+="<a href='"+F.list[C].path+"'>"+F.list[C].title+"</a>"
}D+="</div>";
D+="<div class='credit'>";
if(typeof F.list[C].credit!=="undefined"){D+=F.list[C].credit
}D+="</div>";
if(typeof F.list[C].gated!=="undefined"&&F.list[C].gated==true){D+="<div class='gated'><span class='lock'></span></div>"
}D+="<div class='clearBoth'></div>";
D+="</div></li>"
}D+="</ul>";
if(F.list.length!=null&&F.list.length>0){B.html(D);
if(typeof DotDotDot!="undefined"){DotDotDot.init()
}}else{B.parent().hide()
}},ResourceWebinar:function(F,G){var B=$("#"+F);
var A=$("#"+F+"_pagination");
$(A).show();
if(G.totalPages>1){$(A).html(Resource.calculatePagination(G));
$(A).find("a").each(function(){$(this).click(function(){$(B).attr(Resource.paginationIndexSelector,$(this).attr("href").split("#")[1]);
var H=$(B).closest("["+Resource.resourceTypeContainerSelector+"]").attr(Resource.resourceLanguages);
Resource.refreshCategoryContainer(B,H);
return false
})
})
}else{$(A).html("");
$(A).hide()
}var E="<ul class='webinar-container'>";
for(var D=0;
D<G.list.length;
D++){if(D%2==0){E+="<li class='even'>"
}else{E+="<li class='odd'>"
}E+="<div class='author-container'>";
E+="<div class='author-thumbnail-container'>";
E+="<img src='"+G.list[D].authorThumbnailPath+"'/>";
E+="</div>";
E+="<div class='author-description-container'>";
E+="<div class='title'>";
if(G.list[D].gated||G.list[D].registration){E+="<a href='"+G.list[D].path+"' target='_blank'>"+G.list[D].title+"</a>"
}else{E+="<a href='"+G.list[D].path+"'>"+G.list[D].title+"</a>"
}E+="</div>";
if(typeof G.list[D].authorDescription!=="undefined"){E+="<div class='author-title'><strong>"+G.list[D].authorTitle+"</strong></div>"
}if(typeof G.list[D].authorDescription!=="undefined"){E+="<div class='author-description ellipsis'>"+G.list[D].authorDescription+"</div>"
}E+="</div>";
E+="<div class='clearBoth'></div>";
E+="</div>";
E+="<div class='categories-container'><div class='categories-container-margin'>";
if(typeof G.list[D].upcoming!=="undefined"){E+="<div>";
E+="<strong>"+G.list[D].upcoming+"</strong>";
if(typeof G.list[D].upcomingTime!=="undefined"){E+="<br/>";
E+="<strong>"+G.list[D].upcomingTime+"</strong>"
}E+="</div>"
}if(typeof G.list[D].categories!=="undefined"){for(var C=0;
C<G.list[D].categories.length;
C++){E+="<div>"+G.list[D].categories[C]+"</div>"
}}E+="</div></div>";
E+="<div class='clearBoth'></div>";
E+="</div></li>"
}E+="</ul>";
if(G.list.length!=null&&G.list.length>0){B.html(E);
if(typeof DotDotDot!="undefined"){DotDotDot.init()
}}else{B.parent().hide()
}},ResourceVideo:function(F,G){var B=$("#"+F);
var A=$("#"+F+"_pagination");
$(A).show();
if(G.totalPages>1){$(A).html(Resource.calculatePagination(G));
$(A).find("a").each(function(){$(this).click(function(){$(B).attr(Resource.paginationIndexSelector,$(this).attr("href").split("#")[1]);
var H=$(B).closest("["+Resource.resourceTypeContainerSelector+"]").attr(Resource.resourceLanguages);
Resource.refreshCategoryContainer(B,H);
return false
})
})
}else{$(A).html("");
$(A).hide()
}var E="<ul class='video-container'>";
for(var D=0;
D<Math.ceil(((G.list.length)/3));
D++){E+="<li><ul class='video-row'>";
for(var C=(D*3);
C<((G.list.length-(D*3))>3?((D+1)*3):(G.list.length));
C++){E+="<li>";
if(G.list[C].gated){E+="<a href='"+G.list[C].path+"' target='_blank'>"
}else{E+="<a href='"+G.list[C].path+"'>"
}E+="<div class='thumbnail-container'>";
E+="<img src='"+G.list[C].thumbnailPath+"'/>";
E+="<div class='video-play-sprite'></div>";
E+="<div class='video-duration'>"+G.list[C].videoLength+"</div>";
E+="</div>";
E+="</a>";
E+="<div class='title-container'>";
E+="<span class='small-right-arrow-orange'></span>";
if(G.list[C].gated){E+="<a href='"+G.list[C].path+"' class='video-title ellipsis' target='_blank'>"+G.list[C].title+"</a>"
}else{E+="<a href='"+G.list[C].path+"' class='video-title ellipsis'>"+G.list[C].title+"</a>"
}E+="<div class='clearBoth'>";
E+="</div>";
E+="</li>"
}E+="</ul></li>"
}E+="</ul><div class='clearBoth'></div>";
if(G.list.length!=null&&G.list.length>0){B.html(E);
if(typeof DotDotDot!="undefined"){DotDotDot.init()
}}else{B.parent().hide()
}}};
var Teaser={init:function(){},afterTeaserLoad:function(){Carousel.init();
Hero.init();
Lightbox.init();
ExternalLink.init();
PopupLink.init()
}};
var Calculator={init:function(){jQuery("input[type='text'],input[type='radio'],.costCompare select").change(function(){Calculator.calculateCost(name)
});
jQuery("a[rel='clear']").click(function(){var A=document.forms[0];
jQuery(A).find(":input").each(function(){switch(this.type){case"text":jQuery(this).val("");
break
}});
Calculator.calculateCost();
return false
})
},formatNumber:function(A){var B=/(\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\_|\+|\-|\=|\{|\}|\[|\]|\||\\|\:|\"|\;|\'|\<|\>|\,|\?|\/|[a-z])*/ig;
return(A.replace(B,""))
},currency:function(B){var A="";
B="$"+B;
if(B.indexOf(".")>-1){A=B.slice(B.indexOf("."),B.indexOf(".")+3);
B=B.slice(0,B.indexOf("."))
}var C=B.length;
while(C>4){C=C-3;
B=B.slice(0,C)+","+B.slice(C)
}B=B+A;
return(B)
},calculateCost:function(A){var C=document.forms[0];
var G=0;
var F=0;
var B=31800;
var D=0;
var J=jQuery("input:radio[name=g2tPrice]:checked").val();
for(i=0;
i<C.length;
i++){var H=Calculator.formatNumber(C.elements[i].value);
if(H==""){H=0
}if(C.elements[i].name!="timeAway"&&C.elements[i].type=="text"){H=parseFloat(H);
if(C.elements[i].name!="missedOpp"){G+=H
}else{if(C.timeAway.value!=""){var E=Calculator.formatNumber(C.missedOpp.value);
if(E==""){E=0
}var I=E%31800;
if(I==0){if(A!="missedOpp"){switch(C.timeUnit.value){case"Day":D=B*Calculator.formatNumber(C.timeAway.value);
break;
case"Week":D=B*Calculator.formatNumber(C.timeAway.value)*7;
break;
case"Month":D=B*Calculator.formatNumber(C.timeAway.value)*30;
break
}}}else{D=parseFloat(E)
}C.missedOpp.value=Calculator.currency(D)
}}}}F=G+D;
G=Calculator.currency(G);
F=Calculator.currency(F);
jQuery("#trainingSub,#trainingTotal").text(J);
jQuery("#subtotal").text(G);
jQuery("#total").text(F)
},clearElement:function(B,A,C){theAction=(C&&((B.value=="")||(B.value==A)))?"add":"remove";
Calculator.eventHandlerClass(theAction,B,"prefill");
if(C&&B.value==""){B.value=A
}else{if(B.value==A){B.value=""
}}},eventHandlerClass:function(E,C,B,A){switch(E){case"add":if(!eventHandlerClass("check",C,B)){C.className+=C.className?" "+B:B
}break;
case"remove":var D=C.className.match(" "+B)?" "+B:B;
C.className=C.className.replace(D,"");
break;
case"check":return new RegExp("\\b"+B+"\\b").test(C.className);
break
}}};
var ComparePlans={init:function(){ComparePlans.hideAll();
$(".compare a.plus").each(function(){$(this).click(function(){var A=jQuery(this)[0];
if(A.className.indexOf(Accordion.classNames.categories.active)>=0){$(this).removeClass(Accordion.classNames.categories.active).addClass(Accordion.classNames.categories.inactive)
}else{$(this).removeClass(Accordion.classNames.categories.inactive).addClass(Accordion.classNames.categories.active)
}$("#"+this.id+"_expand").slideToggle();
return false
})
})
},hideAll:function(){jQuery(".compare > .subgroup").hide();
jQuery(".compare > a.plus").removeClass(Accordion.classNames.categories.active).addClass(Accordion.classNames.categories.inactive)
}};
jQuery("a.annualPlan").click(function(){jQuery(".annualPlan").addClass("annualSelected");
jQuery(".annualPrice").removeClass("hiddenContent");
jQuery(".monthlyPrice").addClass("hiddenContent");
jQuery(".monthlyPlan").addClass("monthlyDefault")
});
jQuery("a.monthlyPlan").click(function(){jQuery(".monthlyPrice").removeClass("hiddenContent");
jQuery(".monthlyPlan").removeClass("monthlyDefault");
jQuery(".annualPrice").addClass("hiddenContent");
jQuery(".annualPlan").removeClass("annualSelected")
});
var planCost={g2m:{mo:"49",yr:"468"},"g2w-tier1":{mo:"99",yr:"948"},"g2w-tier2":{mo:"399",yr:"3,828"},"g2w-tier3":{mo:"499",yr:"4,788"},"g2t-tier1":{mo:"149",yr:"1,428"},"g2t-tier2":{mo:"349",yr:"3,348"}};
var Pricing={init:function(){if(jQuery.browser.msie){jQuery(".select-seat .dropdown-arrow").addClass("hiddenContent")
}jQuery("select.seats").change(function(){var B=jQuery(this).val();
var A=jQuery(this).attr("name").substring(0,jQuery(this).attr("name").indexOf("-"));
if(B<6){if((A=="g2w"||A=="g2t")){if(B>1){jQuery("."+A+"-buy-link").removeClass(A+"-price");
jQuery("."+A+"-buy-link").addClass("hiddenContent");
jQuery("."+A+"-try-link").addClass(A+"-price")
}else{jQuery("."+A+"-try-link").removeClass(A+"-price");
jQuery("."+A+"-try-link").addClass("hiddenContent");
jQuery("."+A+"-buy-link").addClass(A+"-price")
}}jQuery("."+A+"-price").removeClass("hiddenContent");
jQuery("."+A+"-sales").addClass("hiddenContent");
Pricing.updateCommerceLinks(A,B);
Pricing.updatePrice(A,B)
}else{jQuery("."+A+"-price").addClass("hiddenContent");
jQuery("."+A+"-sales").removeClass("hiddenContent")
}})
},updateCommerceLinks:function(A,B){jQuery("a").each(function(){var D=this.href;
var E="quantities=";
var G="?";
if(D.indexOf("?")>-1){G="&"
}if(D.indexOf("secure.citrixonline.com")>-1){var C=Pricing.getParameterByNameFromURL("catalog",D);
var F="g2m";
if(C!=""){if(C==8||C==9){F="g2w"
}else{if(C==6||C==7){F="g2t"
}else{if(D.indexOf("/gotowebinar/")>-1){F="g2w"
}else{if(D.indexOf("/gototraining/")>-1){F="g2t"
}}}}}if(A==F){qtyIndex=D.indexOf(E);
if(qtyIndex>-1){cQty=D.substring(qtyIndex,qtyIndex+12);
this.href=D.replace(cQty,E+B)
}else{this.href=D+G+E+B
}}}})
},updatePrice:function(A,D){if(A=="g2m"){var C=Pricing.currency(parseInt(planCost[A].mo)*D);
var B=Pricing.currency(parseInt(planCost[A].yr)*D);
jQuery("#"+A+"-month").html(C);
jQuery("#"+A+"-year").html(B)
}else{if(A=="g2w"){for(i=1;
i<=3;
i++){var C=Pricing.currency(parseInt(planCost[A+"-tier"+i].mo)*D);
var B=planCost[A+"-tier"+i].yr;
B=Pricing.currency(parseInt(B.replace(",",""))*D);
jQuery("#"+A+"-tier"+i+"-month").html(C);
jQuery("#"+A+"-tier"+i+"-year").html(B)
}}else{if(A=="g2t"){for(i=1;
i<=2;
i++){var C=Pricing.currency(parseInt(planCost[A+"-tier"+i].mo)*D);
var B=planCost[A+"-tier"+i].yr;
B=Pricing.currency(parseInt(B.replace(",",""))*D);
jQuery("#"+A+"-tier"+i+"-month").html(C);
jQuery("#"+A+"-tier"+i+"-year").html(B)
}}}}},currency:function(B){var A="";
B=""+B;
if(B.indexOf(".")>-1){A=B.slice(B.indexOf("."),B.indexOf(".")+3);
B=B.slice(0,B.indexOf("."))
}var C=B.length;
while(C>4){C=C-3;
B=B.slice(0,C)+","+B.slice(C)
}B=B+A;
return(B)
},getParameterByNameFromURL:function(C,B){C=C.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var A="[\\?&]"+C+"=([^&#]*)";
var E=new RegExp(A);
var D=E.exec(B);
if(D==null){return""
}else{return D[1]
}}};
var ITF_Countries={init:function(){var A=jQuery("#worldMapImg").attr("src");
jQuery("#itfArea").append(asia,europe,africa,southAmerica,northAmerica,autrailasia);
jQuery("#continentData input").each(function(){var E=jQuery(this).attr("title");
var C=jQuery(this).attr("name");
var B=jQuery(this).val().split(",").sort();
jQuery('<input type="button" name="'+C+'" value="'+E+'">').appendTo("#accordion");
if(E=="Asia"||E=="Europe"){var F=jQuery('<div class="pane maxHeight"></div>').appendTo("#accordion")
}else{var F=jQuery('<div class="pane"></div>').appendTo("#accordion")
}var D=jQuery("<ul></ul>").appendTo(F);
jQuery.each(B,function(){jQuery("<li>"+this+"</li>").appendTo(D)
})
});
jQuery('<div class="clearBoth"></div>').appendTo("#accordion");
jQuery("#itfArea area").hover(function(){var B=jQuery(this).attr("class");
var C=A.substring(0,A.lastIndexOf("/"));
jQuery("#worldMapImg").attr("src",C+"/"+B+".gif")
},function(){var B=A.substring(0,A.lastIndexOf("/"));
jQuery("#worldMapImg").attr("src",B+"/itf_worldMap.gif")
});
jQuery("#itfArea area").click(function(){var B=jQuery(this).attr("class");
jQuery('#accordion input[name="'+B+'"]').trigger("click")
});
jQuery("#accordion input").click(function(){ITF_Countries.accordion(jQuery(this))
});
jQuery("#backBtn").click(function(){ITF_Countries.goBack()
});
jQuery(".popup .footer").hide()
},accordion:function(B){if(B.hasClass("current")==true){ITF_Countries.goBack()
}else{jQuery("#accordion .pane").slideUp();
jQuery("#accordion input").removeClass();
B.next(".pane").slideDown();
B.addClass("current");
var A=B.attr("name");
jQuery("#itfWorldMap").fadeOut();
jQuery("#zoomContinents .current").fadeOut().removeClass("current");
jQuery("#zoom_"+A).fadeIn().addClass("current");
jQuery("#backBtn").show()
}},goBack:function(){jQuery("#accordion input").removeClass();
jQuery("#accordion .pane").slideUp();
jQuery("#itfWorldMap").fadeIn();
jQuery("#backBtn").hide();
jQuery("#zoomContinents .current").fadeOut().removeClass("current")
}};
var asia='<area shape="poly" href="#" alt="Asia" class="ctnt_AS" coords="581,232,573,217,564,209,564,205,576,213,577,205,570,198,569,183,566,177,561,178,558,173,551,162,540,163,527,182,526,195,531,198,532,205,526,204,527,198,524,194,521,200,506,165,501,164,496,157,491,153,470,153,477,161,473,172,462,180,449,186,439,184,432,171,423,152,417,142,417,128,417,120,422,115,427,112,435,115,441,113,439,108,445,104,445,95,442,87,448,82,453,80,453,67,463,63,466,55,463,47,466,43,460,32,469,33,473,30,479,25,483,23,483,20,475,19,471,16,478,16,483,17,479,20,483,25,491,25,495,22,489,22,493,19,500,21,513,24,518,28,540,30,550,30,564,35,570,31,584,33,599,35,608,36,612,40,623,40,632,38,641,39,649,40,657,45,662,49,666,52,671,55,664,59,656,61,651,62,653,67,659,75,660,84,643,71,644,65,645,57,641,59,633,56,634,63,631,65,625,61,611,64,609,74,614,77,621,76,624,72,630,77,634,83,635,88,641,94,638,95,640,100,646,101,648,105,645,109,646,113,650,117,651,124,653,129,646,131,645,134,641,134,636,137,633,138,631,134,635,129,640,127,644,122,644,115,641,108,641,102,636,93,632,85,627,80,625,77,621,78,626,84,630,89,630,99,628,104,623,106,620,113,622,119,627,123,624,129,619,126,615,119,611,115,602,112,597,117,604,121,609,121,605,125,611,131,615,135,617,145,616,151,620,151,625,155,620,160,616,158,617,153,614,150,607,159,597,162,597,171,591,171,595,168,590,164,585,168,590,175,595,184,595,190,589,195,586,196,575,188,572,194,576,198,582,204,584,210,586,216,585,223,589,231,591,236,601,238,607,241,615,242,622,242,628,242,638,242,629,236,625,231,621,237,620,233,620,226,616,224,614,231,607,228,599,226,597,219,597,215,603,215,609,209,615,204,621,207,619,215,619,221,625,220,630,224,629,229,631,235,632,240,640,244,664,241,664,236,659,234,654,230,648,232,643,230,650,227,648,223,636,205,630,202,626,203,625,202,628,198,628,193,624,190,620,183,620,178,620,172,624,172,626,179,629,184,626,186,630,194,633,198,635,195,639,201,636,204,636,205,648,221,652,221,656,223,658,229,663,225,669,225,673,228,672,234,669,241,665,242,664,241,640,245,628,249,633,244,630,243,627,246,620,245,615,246,611,244,611,242,606,243,595,243,585,238,580,231">';
var europe='<area shape="poly" href="#" alt="Europe" class="ctnt_EU" coords="318,121,323,123,328,122,335,119,340,112,344,105,358,103,362,111,373,122,379,113,385,122,391,117,404,125,418,118,424,110,434,113,439,114,438,108,444,102,441,86,452,80,453,68,466,60,463,48,467,41,453,29,452,38,440,39,427,39,420,43,414,41,408,44,392,40,380,36,362,39,354,51,345,59,349,66,356,64,357,70,368,69,372,62,368,56,376,49,380,51,378,58,382,66,376,75,366,76,357,76,341,80,315,56,313,41,305,49,327,68,312,82,321,90,330,79,334,84,327,89,332,95,329,105,320,106,314,106,316,119">';
var africa='<area shape="poly" href="#" alt="Africa" class="ctnt_AF" coords="323,124,327,126,331,126,335,124,337,125,342,122,350,123,356,122,362,126,362,132,367,134,376,138,380,139,381,135,392,135,403,139,412,138,417,143,417,149,419,156,423,161,424,164,424,170,430,175,429,178,436,186,440,193,456,191,457,196,454,205,448,214,441,221,435,229,429,242,433,250,432,258,433,264,438,267,443,264,447,262,451,254,455,262,452,273,448,281,445,291,440,293,437,286,436,281,438,277,438,267,431,263,424,271,419,277,419,282,417,288,413,293,409,300,404,307,395,315,385,316,377,316,377,310,365,275,362,270,365,262,368,254,364,235,357,230,357,214,348,211,348,207,335,210,322,210,313,209,306,204,301,196,296,189,295,181,297,173,295,165,299,157,306,148,313,137,323,124">';
var southAmerica='<area shape="poly" href="#" alt="South America" class="ctnt_SA" coords="155,196,166,193,174,193,182,193,190,196,197,203,206,205,212,210,216,218,218,223,227,226,234,229,242,230,248,235,251,247,245,258,244,274,239,282,223,291,220,305,214,316,206,316,208,323,199,331,196,338,194,349,194,359,200,368,204,370,190,370,180,354,172,323,172,277,164,270,153,253,148,243,144,228,152,205,154,196">';
var northAmerica='<area shape="poly" href="#" alt="North America" class="ctnt_NA" coords="151,206,145,208,142,201,136,199,129,187,114,180,104,178,90,172,86,157,83,161,75,154,71,144,70,133,63,122,66,108,73,96,71,86,72,77,67,80,71,70,66,63,55,62,48,63,40,66,39,69,34,72,32,69,21,72,28,67,24,65,23,60,33,55,41,53,33,51,45,45,49,41,65,37,72,36,98,41,118,38,133,42,144,43,140,40,138,37,136,34,129,35,127,33,135,29,145,30,149,29,158,26,163,26,168,27,163,35,171,41,171,35,166,33,174,30,186,30,191,26,187,24,197,26,200,23,207,19,205,18,194,20,194,16,207,16,221,12,246,13,251,15,277,10,288,9,303,12,310,15,320,16,310,20,310,23,305,31,300,34,300,38,291,44,276,48,267,50,257,58,257,62,246,62,241,46,250,41,245,35,245,28,234,26,227,24,238,20,242,18,243,15,225,20,216,23,208,24,200,23,199,26,208,26,203,31,207,33,215,35,220,37,219,43,226,46,222,50,216,50,218,55,211,53,213,57,205,55,203,53,193,52,191,49,197,49,202,49,208,44,205,41,199,39,192,44,187,47,187,49,190,54,184,53,180,55,177,54,184,47,187,42,187,36,185,32,181,38,182,43,180,51,171,54,162,59,155,64,158,70,165,73,172,76,174,83,178,77,186,70,185,66,190,60,196,57,203,59,206,61,205,66,213,62,216,68,216,73,224,80,221,84,217,86,221,88,226,91,224,96,212,95,216,91,214,87,204,87,199,87,190,90,187,94,191,94,198,91,202,89,200,94,202,97,208,96,212,96,209,99,197,103,195,101,186,105,182,108,175,114,170,118,167,122,167,126,162,130,151,137,149,144,151,150,149,154,146,151,144,143,133,141,130,145,119,143,112,150,110,158,110,167,113,172,120,172,124,168,128,164,133,164,140,161,149,160,155,162,161,166,169,168,175,170,181,174,170,173,164,175,162,170,155,169,152,165,146,162,139,163,131,170,129,178,135,179,139,181,139,191,142,197,147,195,153,200,151,206">';
var autrailasia='<area shape="poly" href="#" alt="Australasia" class="ctnt_AU" coords="672,228,678,230,685,237,693,236,696,233,700,235,697,239,690,240,686,240,688,243,693,248,693,250,687,250,682,246,677,244,677,247,674,247,674,251,678,257,680,263,680,269,680,273,684,277,687,282,688,288,691,288,692,298,714,306,718,306,719,311,724,309,725,315,719,317,720,327,718,329,715,331,707,333,709,328,710,322,713,317,715,312,713,305,692,298,689,301,686,306,678,314,672,321,669,325,661,326,659,329,659,332,662,333,657,336,657,340,650,339,651,334,653,331,656,331,658,326,653,327,647,325,647,320,641,320,643,316,639,316,638,311,631,308,628,311,618,311,614,314,609,314,604,316,597,317,595,312,599,309,599,299,597,296,600,290,601,282,606,278,611,278,616,276,621,274,622,271,624,267,631,263,636,258,639,263,643,257,649,253,654,253,660,254,662,255,657,260,666,268,669,262,672,251,675,254,676,249,672,248,670,244,668,242,672,238,672,228">';
var CurrentPageReference=CurrentPageReference||{init:function(){var B=$(".share.email").parent();
var A=$(".share.googlePlusSmall").parent();
var C=$(".share.facebookSmall").parent();
CurrentPageReference.replaceCurrentPage(B);
CurrentPageReference.replaceCurrentPage(A);
CurrentPageReference.replaceCurrentPage(C)
},replaceCurrentPage:function(A){if(A!=null&&A.length>0){A.each(function(){var C=$(this);
var B=C.attr("href");
if(B!=null&&B.length>0){C.attr("href",B.replace("((currentPage))",window.location.href))
}})
}}};
var ExternalLink={selector:"a[rel=external]",init:function(){$(ExternalLink.selector).unbind("click").click(function(){window.open(this.href);
return false
})
}};
var Lightbox=Lightbox||{selector:"a[rel='lightbox']",init:function(){$(Lightbox.selector).click(function(){var F=$(this).attr("href");
if(F.indexOf("#")!=-1){var C=F.split("#")[1];
if(Lightbox.currentLightbox!==null&&C===$(Lightbox.currentLightbox).attr("id")){$(Lightbox.currentLightbox).show()
}else{$("#lightbox-border div").each(function(){if(C===$(this).attr("id")){Lightbox.currentLightbox=$(this);
$("#lightbox-border").css("width",$(this).css("width"));
$(Lightbox.currentLightbox).show()
}else{}})
}$("div#lightbox-container").unbind("click").click(function(){BCL.pausePlayerByObjectId($(Lightbox.currentLightbox).find("object").attr("id"));
$("#lightbox-container").fadeOut(100);
$(Lightbox.currentLightbox).hide()
});
$("div#lightbox-close").unbind("click").click(function(){BCL.pausePlayerByObjectId($(Lightbox.currentLightbox).find("object").attr("id"));
$("#lightbox-container").fadeOut(100);
$(Lightbox.currentLightbox).hide()
});
$("div#lightbox-container div").click(function(G){G.stopPropagation()
});
$("#lightbox-container").fadeIn(100)
}else{if($(this).attr("id")=="localeSelector"){var D=$(this).offset().left-30;
var B=$(this).offset().top+30;
$("#lightbox-border").css("margin-left",D).css("margin-top",B);
$("#lightbox-container").addClass("locale-selector").height($("body").height());
$("#lightbox-border div").each(function(){if("localeContainer"===$(this).attr("id")){Lightbox.currentLightbox=$(this);
$(Lightbox.currentLightbox).show()
}else{}});
$("div#lightbox-close").unbind("click").click(function(){$("#lightbox-container").fadeOut(100,function(){$("#lightbox-container").removeAttr("style");
$("#lightbox-container").removeClass();
$("#lightbox-border").removeAttr("style");
$(Lightbox.currentLightbox).hide()
})
});
$("div#lightbox-container").unbind("click").click(function(){$("#lightbox-container").fadeOut(100,function(){$("#lightbox-container").removeAttr("style");
$("#lightbox-container").removeClass();
$("#lightbox-border").removeAttr("style");
$(Lightbox.currentLightbox).hide()
})
});
$("div#lightbox-container div").click(function(G){G.stopPropagation()
});
$("#lightbox-container").fadeIn(100)
}else{if(F.match("^//")||F.match("^http")){var A=Lightbox.getParameterByNameFromURL("height",F);
var E=Lightbox.getParameterByNameFromURL("width",F);
if(!A){A=670
}if(!E){E=530
}$("#lightbox-dynamic").empty();
$("#lightbox-dynamic").append("<iframe src="+F+" height="+A+"px width="+E+"px frameBorder='0'></iframe>");
$("#lightbox-dynamic").show();
$("#lightbox-border").height(A);
$("#lightbox-border").width(E);
$("#lightbox-dynamic a[rel='external']").each(function(){$(this).click(function(){window.open($(this).attr("href"));
return false
})
});
$("div#lightbox-close").unbind("click").click(function(){$("#lightbox-container").fadeOut(100,function(){$("#lightbox-border").removeAttr("style");
$("#lightbox-dynamic").empty();
$("#lightbox-dynamic").hide()
})
});
$("div#lightbox-container").unbind("click").click(function(){$("#lightbox-container").fadeOut(100,function(){$("#lightbox-border").removeAttr("style");
$("#lightbox-dynamic").empty();
$("#lightbox-dynamic").hide()
})
});
$("div#lightbox-container div").click(function(G){G.stopPropagation()
});
$("#lightbox-container").fadeIn(100)
}else{$("#lightbox-dynamic").load($(this).attr("href")+" #lightbox-content",function(){Common.lightboxInit();
BCL.playInLightbox();
$("#lightbox-dynamic").show();
$("#lightbox-border").addClass($("#lightbox-content").attr("class"));
$("#lightbox-content a[rel='external']").each(function(){$(this).click(function(){window.open($(this).attr("href"));
return false
})
});
$("div#lightbox-close").unbind("click").click(function(){$("#lightbox-container").fadeOut(100,function(){$("#lightbox-border").removeAttr("style");
$("#lightbox-content").remove();
$("#lightbox-dynamic").hide();
$("#lightbox-border").removeClass()
})
});
$("div#lightbox-container").unbind("click").click(function(){$("#lightbox-container").fadeOut(100,function(){$("#lightbox-border").removeAttr("style");
$("#lightbox-content").remove();
$("#lightbox-dynamic").hide();
$("#lightbox-border").removeClass()
})
});
$("div#lightbox-container div").not(".brightcoveVideo div").click(function(G){G.stopPropagation()
});
$("#lightbox-container").fadeIn(100)
})
}}}return false
})
},currentLightbox:null,getParameterByNameFromURL:function(C,B){C=C.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var A="[\\?&]"+C+"=([^&#]*)";
var E=new RegExp(A);
var D=E.exec(B);
if(D==null){return""
}else{return D[1]
}}};
var LocaleSelector={selector:"#localeSelector",init:function(){$(LocaleSelector.selector).hover(function(){LocaleSelector.autoOpen=setTimeout('$("#localeSelector").trigger("click");',500)
},function(){clearTimeout(LocaleSelector.autoOpen)
})
},autoOpen:null};
var PopupLink={selector:"a[rel=popup]",init:function(){$(PopupLink.selector).each(function(){$(this).unbind("click").click(function(){window.open(this.href,"","width=500,height=400");
return false
})
})
}};
var ToolTip=ToolTip||{selector:"a[rel='tooltip']",init:function(){$(ToolTip.selector).each(function(){$(this).stationaryTip()
})
}};
var ScrollToTop=ScrollToTop||{selector:".gotop",init:function(){$(ScrollToTop.selector).unbind("click").click(function(){$("html,body").animate({scrollTop:0},1000)
})
}};
var Link=Link||{init:function(){if(typeof CurrentPageReference!="undefined"){CurrentPageReference.init()
}if(typeof ExternalLink!="undefined"){ExternalLink.init()
}if(typeof Lightbox!="undefined"){Lightbox.init()
}if(typeof LocaleSelector!="undefined"){LocaleSelector.init()
}if(typeof PopupLink!="undefined"){PopupLink.init()
}if(typeof ToolTip!="undefined"){ToolTip.init()
}if(typeof ScrollToTop!="undefined"){ScrollToTop.init()
}if(typeof Hero!="undefined"){Hero.init()
}}};
var FormBuilder=FormBuilder||{init:function(){var A=false;
$(".custom-form form").submit(function(){A=false;
$("input,select,textarea",this).removeClass("error");
$(".err",this).remove();
$(".required",this).each(function(){if($(this).is(":visible")){if((!$(this).val())||($(this).is(":checkbox")&&!$(this).is(":checked"))){A=true;
$(this).addClass("error");
if($(this).is(":checkbox")){$('<div class="err">This field is required</div>').insertAfter($(".check-box"))
}else{$('<div class="err">This field is required</div>').insertAfter($(this))
}}}});
$("input[type=text]",this).each(function(){A=FormBuilder.checkTextFieldConstraint($(this),A)
});
if(A){return false
}FormBuilder.checkFormNames()
});
$(function(){$(".datePicker").datepicker()
})
},checkTextFieldConstraint:function(G,C){var H=G.val();
var B=G.attr("name");
var E=G.attr("constraint");
if(H){switch(E){case"email":var F=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(!F.test(H)){C=true;
G.addClass("error");
$('<div class="err">Please enter valid email address</div>').insertAfter(G)
}break;
case"numeric":var D=/[0-9 -()+]+$/;
if(!D.test(H)){C=true;
G.addClass("error");
$('<div class="err">Please enter a number </div>').insertAfter(G)
}break;
case"date":var A=/^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$/g;
if(!A.test(H)){C=true;
G.addClass("error");
$('<div class="err">Please enter valid date</div>').insertAfter(G)
}break;
default:break
}}return C
},checkFormNames:function(){var A=new Object();
var B="";
$("form").each(function(){$("input, select",this).each(function(){var C=$(this).attr("name");
if(typeof (A[C])=="undefined"){A[C]=1
}else{A[C]=A[C]+1
}});
$.map(A,function(D,C){if(D>1){if(C==""){B=B+"There are "+D+" fields with no name <br />"
}else{B=B+"There are "+D+" fields with name "+C+"<br />"
}}});
$(".warning",this).append(B)
})
}};
function clearElement(B,A,C){theAction=(C&&((B.value=="")||(B.value==A)))?"add":"remove";
eventHandlerClass(theAction,B,"prefill");
if(C&&B.value==""){B.value=A
}else{if(B.value==A){B.value=""
}}}function eventHandlerClass(E,C,B,A){switch(E){case"add":if(!eventHandlerClass("check",C,B)){C.className+=C.className?" "+B:B
}break;
case"remove":var D=C.className.match(" "+B)?" "+B:B;
C.className=C.className.replace(D,"");
break;
case"check":return new RegExp("\\b"+B+"\\b").test(C.className);
break
}}var Common=Common||{init:function(){Accordion.init();
CaseStudy.init();
UtilityNavigation.init();
DotDotDot.init();
Resource.init();
Calculator.init();
ComparePlans.init();
ITF_Countries.init();
Pricing.init();
StickyHeader.init();
CurrentPageReference.init();
ExternalLink.init();
Lightbox.init();
LocaleSelector.init();
PopupLink.init();
ToolTip.init();
ScrollToTop.init();
Hero.init();
FormBuilder.init()
},lightboxInit:function(){Calculator.init();
ITF_Countries.init();
FormBuilder.init()
}};
jQuery(function(){Common.init()
});
(function(c){function p(d,a,b){var e=this,l=d.add(this),h=d.find(b.tabs),j=a.jquery?a:d.children(a),i;h.length||(h=d.children());j.length||(j=d.parent().find(a));j.length||(j=c(a));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(b.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(i>=0)return e;f=b.initialIndex;k=h.eq(f)}if(f===i)return e;
g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[b.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});i=f;h.removeClass(b.current);k.addClass(b.current);return e}},getConf:function(){return b},getTabs:function(){return h},getPanes:function(){return j},getCurrentPane:function(){return j.eq(i)},getCurrentTab:function(){return h.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)}});c.each("onBeforeClick,onClick".split(","),
function(f,g){c.isFunction(b[g])&&c(e).bind(g,b[g]);e[g]=function(k){c(e).bind(g,k);return e}});if(b.history&&c.fn.history){c.tools.history.init(h);b.event="history"}h.each(function(f){c(this).bind(b.event,function(g){e.click(f,g);return g.preventDefault()})});j.find("a[href^=#]").click(function(f){e.click(c(this).attr("href"),f)});if(location.hash)e.click(location.hash);else if(b.initialIndex===0||b.initialIndex>0)e.click(b.initialIndex)}c.tools=c.tools||{version:"1.2.2"};c.tools.tabs={conf:{tabs:"a",
current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,a){o[d]=a}};var o={"default":function(d,a){this.getPanes().hide().eq(d).show();a.call()},fade:function(d,a){var b=this.getConf(),e=b.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(b.fadeInSpeed,a)},slide:function(d,a){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,a)},ajax:function(d,a){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),
a)}},m;c.tools.tabs.addEffect("horizontal",function(d,a){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();a.call()})});c.fn.tabs=function(d,a){var b=this.data("tabs");if(b)return b;if(c.isFunction(a))a={onBeforeClick:a};a=c.extend({},c.tools.tabs.conf,a);this.each(function(){b=new p(c(this),d,a);c(this).data("tabs",b)});return a.api?b:this}})(jQuery);
(function(d){function r(g,a){function p(f){var e=d(f);return e.length<2?e:g.parent().find(f)}var c=this,j=g.add(this),b=g.data("tabs"),h,l,m,n=false,o=p(a.next).click(function(){b.next()}),k=p(a.prev).click(function(){b.prev()});d.extend(c,{getTabs:function(){return b},getConf:function(){return a},play:function(){if(!h){var f=d.Event("onBeforePlay");j.trigger(f);if(f.isDefaultPrevented())return c;n=false;h=setInterval(b.next,a.interval);j.trigger("onPlay");b.next()}},pause:function(){if(!h)return c;
var f=d.Event("onBeforePause");j.trigger(f);if(f.isDefaultPrevented())return c;h=clearInterval(h);m=clearInterval(m);j.trigger("onPause")},stop:function(){c.pause();n=true}});d.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(f,e){d.isFunction(a[e])&&c.bind(e,a[e]);c[e]=function(s){return c.bind(e,s)}});if(a.autopause){var t=b.getTabs().add(o).add(k).add(b.getPanes());t.hover(function(){c.pause();l=clearInterval(l)},function(){n||(l=setTimeout(c.play,a.interval))})}if(a.autoplay)m=
setTimeout(c.play,a.interval);else c.stop();a.clickable&&b.getPanes().click(function(){b.next()});if(!b.getConf().rotate){var i=a.disabledClass;b.getIndex()||k.addClass(i);b.onBeforeClick(function(f,e){if(e){k.removeClass(i);e==b.getTabs().length-1?o.addClass(i):o.removeClass(i)}else k.addClass(i)})}}var q;q=d.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3E3,clickable:true,api:false}};d.fn.slideshow=function(g){var a=
this.data("slideshow");if(a)return a;g=d.extend({},q.conf,g);this.each(function(){a=new r(d(this),g);d(this).data("slideshow",a)});return g.api?a:this}})(jQuery);
(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,e=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];e+=a.outerWidth()+c.offset[1];var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")e-=a/2;if(i=="left")e-=a;return{top:h,left:e}}function t(a,b){var c=this,h=a.add(c),e,i=0,j=0,m=a.attr("title"),q=n[b.effect],k,r=a.is(":input"),u=r&&a.is(":checkbox, :radio, select, :button"),
s=a.attr("type"),l=b.events[s]||b.events[r?u?"widget":"input":"def"];if(!q)throw'Nonexistent effect "'+b.effect+'"';l=l.split(/,\s*/);if(l.length!=2)throw"Tooltip: bad events configuration for "+s;a.bind(l[0],function(d){if(b.predelay){clearTimeout(i);j=setTimeout(function(){c.show(d)},b.predelay)}else c.show(d)}).bind(l[1],function(d){if(b.delay){clearTimeout(j);i=setTimeout(function(){c.hide(d)},b.delay)}else c.hide(d)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,
{show:function(d){if(!e){if(m)e=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else if(b.tip)e=f(b.tip).eq(0);else{e=a.next();e.length||(e=a.parent().next())}if(!e.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;e.stop(true,true);var g=p(a,e,b);d=d||f.Event();d.type="onBeforeShow";h.trigger(d,[g]);if(d.isDefaultPrevented())return c;g=p(a,e,b);e.css({position:"absolute",top:g.top,left:g.left});k=true;q[0].call(c,function(){d.type="onShow";k="full";h.trigger(d)});
g=b.events.tooltip.split(/,\s*/);e.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&e.bind(g[1],function(o){o.relatedTarget!=a[0]&&a.trigger(l[1].split(" ")[0])});return c},hide:function(d){if(!e||!c.isShown())return c;d=d||f.Event();d.type="onBeforeHide";h.trigger(d);if(!d.isDefaultPrevented()){k=false;n[b.effect][1].call(c,function(){d.type="onHide";k=false;h.trigger(d)});return c}},isShown:function(d){return d?k=="full":k},getConf:function(){return b},
getTip:function(){return e},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(o){f(c).bind(g,o);return c}})}f.tools=f.tools||{version:"1.2.2"};f.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",
tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){n[a]=[b,c]}};var n={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,
{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new t(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);
(function(d){var i=d.tools.tooltip;d.extend(i.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!d.browser.msie});var e={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};i.addEffect("slide",function(g){var a=this.getConf(),f=this.getTip(),b=a.slideFade?{opacity:a.opacity}:{},c=e[a.direction]||e.up;b[c[1]]=c[0]+"="+a.slideOffset;a.slideFade&&f.css({opacity:0});f.show().animate(b,a.slideInSpeed,g)},function(g){var a=this.getConf(),f=a.slideOffset,
b=a.slideFade?{opacity:0}:{},c=e[a.direction]||e.up,h=""+c[0];if(a.bounce)h=h=="+"?"-":"+";b[c[1]]=h+"="+f;this.getTip().animate(b,a.slideOutSpeed,function(){d(this).hide();g.call()})})})(jQuery);
(function(g){function j(a){var c=g(window),d=c.width()+c.scrollLeft(),h=c.height()+c.scrollTop();return[a.offset().top<=c.scrollTop(),d<=a.offset().left+a.width(),h<=a.offset().top+a.height(),c.scrollLeft()>=a.offset().left]}function k(a){for(var c=a.length;c--;)if(a[c])return false;return true}var i=g.tools.tooltip;i.dynamic={conf:{classNames:"top right bottom left"}};g.fn.dynamic=function(a){if(typeof a=="number")a={speed:a};a=g.extend({},i.dynamic.conf,a);var c=a.classNames.split(/\s/),d;this.each(function(){var h=
g(this).tooltip().onBeforeShow(function(e,f){e=this.getTip();var b=this.getConf();d||(d=[b.position[0],b.position[1],b.offset[0],b.offset[1],g.extend({},b)]);g.extend(b,d[4]);b.position=[d[0],d[1]];b.offset=[d[2],d[3]];e.css({visibility:"hidden",position:"absolute",top:f.top,left:f.left}).show();f=j(e);if(!k(f)){if(f[2]){g.extend(b,a.top);b.position[0]="top";e.addClass(c[0])}if(f[3]){g.extend(b,a.right);b.position[1]="right";e.addClass(c[1])}if(f[0]){g.extend(b,a.bottom);b.position[0]="bottom";e.addClass(c[2])}if(f[1]){g.extend(b,
a.left);b.position[1]="left";e.addClass(c[3])}if(f[0]||f[2])b.offset[0]*=-1;if(f[1]||f[3])b.offset[1]*=-1}e.css({visibility:"visible"}).hide()});h.onBeforeShow(function(){var e=this.getConf();this.getTip();setTimeout(function(){e.position=[d[0],d[1]];e.offset=[d[2],d[3]]},0)});h.onHide(function(){var e=this.getTip();e.removeClass(a.classNames)});ret=h});return a.api?ret:this}})(jQuery);
(function(e){function n(f,c){var a=e(c);return a.length<2?a:f.parent().find(c)}function t(f,c){var a=this,l=f.add(a),g=f.children(),k=0,m=c.vertical;j||(j=a);if(g.length>1)g=e(c.items,f);e.extend(a,{getConf:function(){return c},getIndex:function(){return k},getSize:function(){return a.getItems().size()},getNaviButtons:function(){return o.add(p)},getRoot:function(){return f},getItemWrap:function(){return g},getItems:function(){return g.children(c.item).not("."+c.clonedClass)},move:function(b,d){return a.seekTo(k+
b,d)},next:function(b){return a.move(1,b)},prev:function(b){return a.move(-1,b)},begin:function(b){return a.seekTo(0,b)},end:function(b){return a.seekTo(a.getSize()-1,b)},focus:function(){return j=a},addItem:function(b){b=e(b);if(c.circular){e(".cloned:last").before(b);e(".cloned:first").replaceWith(b.clone().addClass(c.clonedClass))}else g.append(b);l.trigger("onAddItem",[b]);return a},seekTo:function(b,d,h){if(c.circular&&b===0&&k==-1&&d!==0)return a;if(!c.circular&&b<0||b>a.getSize()||b<-1)return a;
var i=b;if(b.jquery)b=a.getItems().index(b);else i=a.getItems().eq(b);var q=e.Event("onBeforeSeek");if(!h){l.trigger(q,[b,d]);if(q.isDefaultPrevented()||!i.length)return a}i=m?{top:-i.position().top}:{left:-i.position().left};k=b;j=a;if(d===undefined)d=c.speed;g.animate(i,d,c.easing,h||function(){l.trigger("onSeek",[b])});return a}});e.each(["onBeforeSeek","onSeek","onAddItem"],function(b,d){e.isFunction(c[d])&&e(a).bind(d,c[d]);a[d]=function(h){e(a).bind(d,h);return a}});if(c.circular){var r=a.getItems().slice(-1).clone().prependTo(g),
s=a.getItems().eq(1).clone().appendTo(g);r.add(s).addClass(c.clonedClass);a.onBeforeSeek(function(b,d,h){if(!b.isDefaultPrevented())if(d==-1){a.seekTo(r,h,function(){a.end(0)});return b.preventDefault()}else d==a.getSize()&&a.seekTo(s,h,function(){a.begin(0)})});a.seekTo(0,0)}var o=n(f,c.prev).click(function(){a.prev()}),p=n(f,c.next).click(function(){a.next()});!c.circular&&a.getSize()>1&&a.onBeforeSeek(function(b,d){o.toggleClass(c.disabledClass,d<=0);p.toggleClass(c.disabledClass,d>=a.getSize()-
1)});c.mousewheel&&e.fn.mousewheel&&f.mousewheel(function(b,d){if(c.mousewheel){a.move(d<0?1:-1,c.wheelSpeed||50);return false}});c.keyboard&&e(document).bind("keydown.scrollable",function(b){if(!(!c.keyboard||b.altKey||b.ctrlKey||e(b.target).is(":input")))if(!(c.keyboard!="static"&&j!=a)){var d=b.keyCode;if(m&&(d==38||d==40)){a.move(d==38?-1:1);return b.preventDefault()}if(!m&&(d==37||d==39)){a.move(d==37?-1:1);return b.preventDefault()}}});e(a).trigger("onBeforeSeek",[c.initialIndex])}e.tools=e.tools||
{version:"1.2.2"};e.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,wheelSpeed:0}};var j;e.fn.scrollable=function(f){var c=this.data("scrollable");if(c)return c;f=e.extend({},e.tools.scrollable.conf,f);this.each(function(){c=new t(e(this),f);e(this).data("scrollable",c)});return f.api?c:this}})(jQuery);
(function(c){var g=c.tools.scrollable;g.autoscroll={conf:{autoplay:true,interval:3E3,autopause:true}};c.fn.autoscroll=function(d){if(typeof d=="number")d={interval:d};var b=c.extend({},g.autoscroll.conf,d),h;this.each(function(){var a=c(this).data("scrollable");if(a)h=a;var e,i,f=true;a.play=function(){if(!e){f=false;e=setInterval(function(){a.next()},b.interval);a.next()}};a.pause=function(){e=clearInterval(e)};a.stop=function(){a.pause();f=true};b.autopause&&a.getRoot().add(a.getNaviButtons()).hover(function(){a.pause();
clearInterval(i)},function(){f||(i=setTimeout(a.play,b.interval))});b.autoplay&&setTimeout(a.play,b.interval)});return b.api?h:this}})(jQuery);
(function(d){function p(c,g){var h=d(g);return h.length<2?h:c.parent().find(g)}var m=d.tools.scrollable;m.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};d.fn.navigator=function(c){if(typeof c=="string")c={navi:c};c=d.extend({},m.navigator.conf,c);var g;this.each(function(){function h(a,b,i){e.seekTo(b);if(j){if(location.hash)location.hash=a.attr("href").replace("#","")}else return i.preventDefault()}function f(){return k.find(c.naviItem||
"> *")}function n(a){var b=d("<"+(c.naviItem||"a")+"/>").click(function(i){h(d(this),a,i)}).attr("href","#"+a);a===0&&b.addClass(l);c.indexed&&b.text(a+1);c.idPrefix&&b.attr("id",c.idPrefix+a);return b.appendTo(k)}function o(a,b){a=f().eq(b.replace("#",""));a.length||(a=f().filter("[href="+b+"]"));a.click()}var e=d(this).data("scrollable"),k=p(e.getRoot(),c.navi),q=e.getNaviButtons(),l=c.activeClass,j=c.history&&d.fn.history;if(e)g=e;e.getNaviButtons=function(){return q.add(k)};f().length?f().each(function(a){d(this).click(function(b){h(d(this),
a,b)})}):d.each(e.getItems(),function(a){n(a)});e.onBeforeSeek(function(a,b){var i=f().eq(b);!a.isDefaultPrevented()&&i.length&&f().removeClass(l).eq(b).addClass(l)});e.onAddItem(function(a,b){b=n(e.getItems().index(b));j&&b.history(o)});j&&f().history(o)});return c.api?g:this}})(jQuery);
(function(a){function t(d,b){var c=this,i=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";i.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var j=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof j=="string")j=j=="center"?Math.max((o.height()-v)/2,0):parseInt(j,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:j,left:r},function(){if(m){e.type="onLoad";i.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";i.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";i.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(j){a(c).bind(h,j);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<div class="close"></div>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.2"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),i=a(window);if(!c.fixed){d.top+=i.scrollTop();d.left+=i.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(i){function j(b){var d=b.offset();return{top:d.top+b.height()/2,left:d.left+b.width()/2}}var k=i.tools.overlay,f=i(window);i.extend(k.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function n(b,d){var a=this.getOverlay(),c=this.getConf(),g=this.getTrigger(),o=this,l=a.outerWidth({margin:true}),h=a.data("img");if(!h){var e=a.css("backgroundImage");if(!e)throw"background-image CSS property not set for overlay";e=e.slice(e.indexOf("(")+1,e.indexOf(")")).replace(/\"/g,"");
a.css("backgroundImage","none");h=i('<img src="'+e+'"/>');h.css({border:0,display:"none"}).width(l);i("body").append(h);a.data("img",h)}e=c.start.top||Math.round(f.height()/2);var m=c.start.left||Math.round(f.width()/2);if(g){g=j(g);e=g.top;m=g.left}h.css({position:"absolute",top:e,left:m,width:0,zIndex:c.zIndex}).show();b.top+=f.scrollTop();b.left+=f.scrollLeft();b.position="absolute";a.css(b);h.animate({top:a.css("top"),left:a.css("left"),width:l},c.speed,function(){if(c.fixed){b.top-=f.scrollTop();
b.left-=f.scrollLeft();b.position="fixed";h.add(a).css(b)}a.css("zIndex",c.zIndex+1).fadeIn(c.fadeInSpeed,function(){o.isOpened()&&!i(this).index(a)?d.call():a.hide()})})}function p(b){var d=this.getOverlay().hide(),a=this.getConf(),c=this.getTrigger();d=d.data("img");var g={top:a.start.top,left:a.start.left,width:0};c&&i.extend(g,j(c));a.fixed&&d.css({position:"absolute"}).animate({top:"+="+f.scrollTop(),left:"+="+f.scrollLeft()},0);d.animate(g,a.closeSpeed,b)}k.addEffect("apple",n,p)})(jQuery);
(function(d){function R(b,c){return 32-(new Date(b,c,32)).getDate()}function S(b,c){b=""+b;for(c=c||2;b.length<c;)b="0"+b;return b}function T(b,c,j){var m=b.getDate(),h=b.getDay(),t=b.getMonth();b=b.getFullYear();var f={d:m,dd:S(m),ddd:B[j].shortDays[h],dddd:B[j].days[h],m:t+1,mm:S(t+1),mmm:B[j].shortMonths[t],mmmm:B[j].months[t],yy:String(b).slice(2),yyyy:b};c=c.replace(X,function(o){return o in f?f[o]:o.slice(1,o.length-1)});return Y.html(c).html()}function y(b){return parseInt(b,10)}function U(b,
c){return b.getYear()===c.getYear()&&b.getMonth()==c.getMonth()&&b.getDate()==c.getDate()}function C(b){if(b){if(b.constructor==Date)return b;if(typeof b=="string"){var c=b.split("-");if(c.length==3)return new Date(y(c[0]),y(c[1])-1,y(c[2]));if(!/^-?\d+$/.test(b))return;b=y(b)}c=new Date;c.setDate(c.getDate()+b);return c}}function Z(b,c){function j(a,e,g){l=a;D=a.getFullYear();E=a.getMonth();G=a.getDate();g=g||d.Event("api");g.type="change";H.trigger(g,[a]);if(!g.isDefaultPrevented()){b.val(T(a,e.format,
e.lang));b.data("date",a);h.hide(g)}}function m(a){a.type="onShow";H.trigger(a);d(document).bind("keydown.d",function(e){var g=e.keyCode;if(g==8){b.val("");return h.hide(e)}if(g==27)return h.hide(e);if(d(V).index(g)>=0){if(!u){h.show(e);return e.preventDefault()}var i=d("#"+f.weeks+" a"),p=d("."+f.focus),q=i.index(p);p.removeClass(f.focus);if(g==74||g==40)q+=7;else if(g==75||g==38)q-=7;else if(g==76||g==39)q+=1;else if(g==72||g==37)q-=1;if(q==-1){h.addMonth(-1);p=d("#"+f.weeks+" a:last")}else if(q==
35){h.addMonth();p=d("#"+f.weeks+" a:first")}else p=i.eq(q);p.addClass(f.focus);return e.preventDefault()}if(g==34)return h.addMonth();if(g==33)return h.addMonth(-1);if(g==36)return h.today();if(g==13)d(e.target).is("select")||d("."+f.focus).click();return d([16,17,18,9]).index(g)>=0});d(document).bind("click.d",function(e){var g=e.target;if(!d(g).parents("#"+f.root).length&&g!=b[0]&&(!K||g!=K[0]))h.hide(e)})}var h=this,t=new Date,f=c.css,o=B[c.lang],k=d("#"+f.root),L=k.find("#"+f.title),K,I,J,D,
E,G,l=b.attr("data-value")||c.value||b.val(),r=b.attr("min")||c.min,s=b.attr("max")||c.max,u;l=C(l)||t;r=C(r||c.yearRange[0]*365);s=C(s||c.yearRange[1]*365);if(!o)throw"Dateinput: invalid language: "+c.lang;if(b.attr("type")=="date"){var M=d("<input/>");d.each("name,readonly,disabled,value,required".split(","),function(a,e){M.attr(e,b.attr(e))});b.replaceWith(M);b=M}b.addClass(f.input);var H=b.add(h);if(!k.length){k=d("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",
f.root);k.children().eq(0).attr("id",f.head).end().eq(1).attr("id",f.body).children().eq(0).attr("id",f.days).end().eq(1).attr("id",f.weeks).end().end().end().find("a").eq(0).attr("id",f.prev).end().eq(1).attr("id",f.next);L=k.find("#"+f.head).find("div").attr("id",f.title);if(c.selectors){var z=d("<select/>").attr("id",f.month),A=d("<select/>").attr("id",f.year);L.append(z.add(A))}for(var $=k.find("#"+f.days),N=0;N<7;N++)$.append(d("<span/>").text(o.shortDays[(N+c.firstDay)%7]));b.after(k)}if(c.trigger)K=
d("<a/>").attr("href","#").addClass(f.trigger).click(function(a){h.show();return a.preventDefault()}).insertAfter(b);var O=k.find("#"+f.weeks);A=k.find("#"+f.year);z=k.find("#"+f.month);d.extend(h,{show:function(a){if(!(b.is("[readonly]")||u)){a=a||d.Event();a.type="onBeforeShow";H.trigger(a);if(!a.isDefaultPrevented()){d.each(W,function(){this.hide()});u=true;z.unbind("change").change(function(){h.setValue(A.val(),d(this).val())});A.unbind("change").change(function(){h.setValue(d(this).val(),z.val())});
I=k.find("#"+f.prev).unbind("click").click(function(){I.hasClass(f.disabled)||h.addMonth(-1);return false});J=k.find("#"+f.next).unbind("click").click(function(){J.hasClass(f.disabled)||h.addMonth();return false});h.setValue(l);var e=b.position();k.css({top:e.top+b.outerHeight({margins:true})+c.offset[0],left:e.left+c.offset[1]});if(c.speed)k.show(c.speed,function(){m(a)});else{k.show();m(a)}return h}}},setValue:function(a,e,g){var i;if(parseInt(e,10)>=-1){a=y(a);e=y(e);g=y(g);i=new Date(a,e,g)}else{i=
a||l;a=i.getYear()+1900;e=i.getMonth();g=i.getDate()}if(e==-1){e=11;a--}else if(e==12){e=0;a++}if(!u){j(i,c);return h}E=e;D=a;i=new Date(a,e,1-c.firstDay);g=i.getDay();var p=R(a,e),q=R(a,e-1),P;if(c.selectors){z.empty();d.each(o.months,function(v,F){r<new Date(a,v+1,-1)&&s>new Date(a,v,0)&&z.append(d("<option/>").html(F).attr("value",v))});A.empty();for(i=a+c.yearRange[0];i<a+c.yearRange[1];i++)r<new Date(i+1,-1,0)&&s>new Date(i,0,0)&&A.append(d("<option/>").text(i));z.val(e);A.val(a)}else L.html(o.months[e]+
" "+a);O.empty();I.add(J).removeClass(f.disabled);for(var w=0,n,x;w<42;w++){n=d("<a/>");if(w%7===0){P=d("<div/>").addClass(f.week);O.append(P)}if(w<g){n.addClass(f.off);x=q-g+w+1;i=new Date(a,e-1,x)}else if(w>=g+p){n.addClass(f.off);x=w-p-g+1;i=new Date(a,e+1,x)}else{x=w-g+1;i=new Date(a,e,x);if(U(l,i))n.attr("id",f.current).addClass(f.focus);else U(t,i)&&n.attr("id",f.today)}r&&i<r&&n.add(I).addClass(f.disabled);s&&i>s&&n.add(J).addClass(f.disabled);n.attr("href","#"+x).text(x).data("date",i);P.append(n);
n.click(function(v){var F=d(this);if(!F.hasClass(f.disabled)){d("#"+f.current).removeAttr("id");F.attr("id",f.current);j(F.data("date"),c,v)}return false})}f.sunday&&O.find(f.week).each(function(){var v=c.firstDay?7-c.firstDay:0;d(this).children().slice(v,v+1).addClass(f.sunday)});return h},setMin:function(a,e){r=C(a);e&&l<r&&h.setValue(r);return h},setMax:function(a,e){s=C(a);e&&l>s&&h.setValue(s);return h},today:function(){return h.setValue(t)},addDay:function(a){return this.setValue(D,E,G+(a||
1))},addMonth:function(a){return this.setValue(D,E+(a||1),G)},addYear:function(a){return this.setValue(D+(a||1),E,G)},hide:function(a){if(u){a=a||d.Event();a.type="onHide";H.trigger(a);d(document).unbind("click.d").unbind("keydown.d");if(a.isDefaultPrevented())return;k.hide();u=false}return h},getConf:function(){return c},getInput:function(){return b},getCalendar:function(){return k},getValue:function(a){return a?T(l,a,c.lang):l},isOpen:function(){return u}});d.each(["onBeforeShow","onShow","change",
"onHide"],function(a,e){d.isFunction(c[e])&&d(h).bind(e,c[e]);h[e]=function(g){d(h).bind(e,g);return h}});b.bind("focus click",h.show).keydown(function(a){var e=a.keyCode;if(!u&&d(V).index(e)>=0){h.show(a);return a.preventDefault()}return a.shiftKey||a.ctrlKey||a.altKey||e==9?true:a.preventDefault()});C(b.val())&&j(l,c)}d.tools=d.tools||{version:"1.2.2"};var W=[],Q,V=[75,76,38,39,74,72,40,37],B={};Q=d.tools.dateinput={conf:{format:"mm/dd/yy",selectors:false,yearRange:[-5,5],lang:"en",offset:[0,0],
speed:0,firstDay:0,min:0,max:0,trigger:false,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(b,c){d.each(c,function(j,m){c[j]=m.split(",")});B[b]=c}};Q.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",
shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var X=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,Y=d("<a/>");d.expr[":"].date=function(b){var c=b.getAttribute("type");return c&&c=="date"||!!d(b).data("dateinput")};d.fn.dateinput=function(b){if(this.data("dateinput"))return this;b=d.extend({},Q.conf,b);d.each(b.css,function(j,m){if(!m&&j!="prefix")b.css[j]=(b.css.prefix||"")+(m||j)});var c;this.each(function(){var j=new Z(d(this),b);W.push(j);j=j.getInput().data("dateinput",j);c=c?c.add(j):j});return c?
c:this}})(jQuery);
(function(e){function F(d,a){a=Math.pow(10,a);return Math.round(d*a)/a}function p(d,a){if(a=parseInt(d.css(a),10))return a;return(d=d[0].currentStyle)&&d.width&&parseInt(d.width,10)}function C(d){return(d=d.data("events"))&&d.onSlide}function G(d,a){function h(c,b,f,j){if(f===undefined)f=b/k*z;else if(j)f-=a.min;if(r)f=Math.round(f/r)*r;if(b===undefined||r)b=f*k/z;if(isNaN(f))return g;b=Math.max(0,Math.min(b,k));f=b/k*z;if(j||!n)f+=a.min;if(n)if(j)b=k-b;else f=a.max-f;f=F(f,t);var q=c.type=="click";
if(D&&l!==undefined&&!q){c.type="onSlide";A.trigger(c,[f,b]);if(c.isDefaultPrevented())return g}j=q?a.speed:0;q=q?function(){c.type="change";A.trigger(c,[f])}:null;if(n){m.animate({top:b},j,q);a.progress&&B.animate({height:k-b+m.width()/2},j)}else{m.animate({left:b},j,q);a.progress&&B.animate({width:b+m.width()/2},j)}l=f;H=b;d.val(f);return g}function s(){if(n=a.vertical||p(i,"height")>p(i,"width")){k=p(i,"height")-p(m,"height");u=i.offset().top+k}else{k=p(i,"width")-p(m,"width");u=i.offset().left}}
function v(){s();g.setValue(a.value||a.min)}var g=this,o=a.css,i=e("<div><div/><a href='#'/></div>").data("rangeinput",g),n,l,u,k,H;d.before(i);var m=i.addClass(o.slider).find("a").addClass(o.handle),B=i.find("div").addClass(o.progress);e.each("min,max,step,value".split(","),function(c,b){c=d.attr(b);if(parseFloat(c))a[b]=parseFloat(c,10)});var z=a.max-a.min,r=a.step=="any"?0:a.step,t=a.precision;if(t===undefined)try{t=r.toString().split(".")[1].length}catch(I){t=0}if(d.attr("type")=="range"){var w=
e("<input/>");e.each("name,readonly,disabled,required".split(","),function(c,b){w.attr(b,d.attr(b))});w.val(a.value);d.replaceWith(w);d=w}d.addClass(o.input);var A=e(g).add(d),D=true;e.extend(g,{getValue:function(){return l},setValue:function(c,b){return h(b||e.Event("api"),undefined,c,true)},getConf:function(){return a},getProgress:function(){return B},getHandle:function(){return m},getInput:function(){return d},step:function(c,b){b=b||e.Event();var f=a.step=="any"?1:a.step;g.setValue(l+f*(c||1),
b)},stepUp:function(c){return g.step(c||1)},stepDown:function(c){return g.step(-c||-1)}});e.each("onSlide,change".split(","),function(c,b){e.isFunction(a[b])&&e(g).bind(b,a[b]);g[b]=function(f){e(g).bind(b,f);return g}});m.drag({drag:false}).bind("dragStart",function(){D=C(e(g))||C(d)}).bind("drag",function(c,b,f){if(d.is(":disabled"))return false;h(c,n?b:f)}).bind("dragEnd",function(c){if(!c.isDefaultPrevented()){c.type="change";A.trigger(c,[l])}}).click(function(c){return c.preventDefault()});i.click(function(c){if(d.is(":disabled")||
c.target==m[0])return c.preventDefault();s();var b=m.width()/2;h(c,n?k-u-b+c.pageY:c.pageX-u-b)});a.keyboard&&d.keydown(function(c){if(!d.attr("readonly")){var b=c.keyCode,f=e([75,76,38,33,39]).index(b)!=-1,j=e([74,72,40,34,37]).index(b)!=-1;if((f||j)&&!(c.shiftKey||c.altKey||c.ctrlKey)){if(f)g.step(b==33?10:1,c);else if(j)g.step(b==34?-10:-1,c);return c.preventDefault()}}});d.blur(function(c){var b=e(this).val();b!==l&&g.setValue(b,c)});e.extend(d[0],{stepUp:g.stepUp,stepDown:g.stepDown});v();k||
e(window).load(v)}e.tools=e.tools||{version:"1.2.2"};var E;E=e.tools.rangeinput={conf:{min:0,max:100,step:"any",steps:0,value:0,precision:undefined,vertical:0,keyboard:true,progress:false,speed:100,css:{input:"range",slider:"slider",progress:"progress",handle:"handle"}}};var x,y;e.fn.drag=function(d){document.ondragstart=function(){return false};d=e.extend({x:true,y:true,drag:true},d);x=x||e(document).bind("mousedown mouseup",function(a){var h=e(a.target);if(a.type=="mousedown"&&h.data("drag")){var s=
h.position(),v=a.pageX-s.left,g=a.pageY-s.top,o=true;x.bind("mousemove.drag",function(i){var n=i.pageX-v;i=i.pageY-g;var l={};if(d.x)l.left=n;if(d.y)l.top=i;if(o){h.trigger("dragStart");o=false}d.drag&&h.css(l);h.trigger("drag",[i,n]);y=h});a.preventDefault()}else try{y&&y.trigger("dragEnd")}finally{x.unbind("mousemove.drag");y=null}});return this.data("drag",true)};e.expr[":"].range=function(d){var a=d.getAttribute("type");return a&&a=="range"||!!e(d).filter("input").data("rangeinput")};e.fn.rangeinput=
function(d){if(this.data("rangeinput"))return this;d=e.extend(true,{},E.conf,d);var a;this.each(function(){var h=new G(e(this),e.extend(true,{},d));h=h.getInput().data("rangeinput",h);a=a?a.add(h):h});return a?a:this}})(jQuery);
(function(e){function v(a,b,c){var j=a.offset().top,g=a.offset().left,l=c.position.split(/,?\s+/),f=l[0];l=l[1];j-=b.outerHeight()-c.offset[0];g+=a.outerWidth()+c.offset[1];c=b.outerHeight()+a.outerHeight();if(f=="center")j+=c/2;if(f=="bottom")j+=c;a=a.outerWidth();if(l=="center")g-=(a+b.outerWidth())/2;if(l=="left")g-=a;return{top:j,left:g}}function w(a){function b(){return this.getAttribute("type")==a}b.key="[type="+a+"]";return b}function s(a,b,c){function j(f,d,k){if(!(!c.grouped&&f.length)){var h;
if(k===false||e.isArray(k)){h=i.messages[d.key||d]||i.messages["*"];h=h[c.lang]||i.messages["*"].en;(d=h.match(/\$\d/g))&&e.isArray(k)&&e.each(d,function(n){h=h.replace(this,k[n])})}else h=k[c.lang]||k;f.push(h)}}var g=this,l=b.add(g);a=a.not(":button, :image, :reset, :submit");e.extend(g,{getConf:function(){return c},getForm:function(){return b},getInputs:function(){return a},invalidate:function(f,d){if(!d){var k=[];e.each(f,function(h,n){h=a.filter("[name="+h+"]");if(h.length){h.trigger("OI",[n]);
k.push({input:h,messages:[n]})}});f=k;d=e.Event()}d.type="onFail";l.trigger(d,[f]);d.isDefaultPrevented()||q[c.effect][0].call(g,f,d);return g},reset:function(f){f=f||a;f.removeClass(c.errorClass).each(function(){var d=e(this).data("msg.el");if(d){d.remove();e(this).data("msg.el",null)}})},checkValidity:function(f,d){f=f||a;f=f.not(":disabled");if(!f.length)return true;d=d||e.Event();d.type="onBeforeValidate";l.trigger(d,[f]);if(d.isDefaultPrevented())return d.result;var k=[],h=c.errorInputEvent+
".v";f.each(function(){var p=[],m=e(this).unbind(h).data("messages",p);e.each(t,function(){var o=this,r=o[0];if(m.filter(r).length){o=o[1].call(g,m,m.val());if(o!==true){d.type="onBeforeFail";l.trigger(d,[m,r]);if(d.isDefaultPrevented())return false;var u=m.attr(c.messageAttr);if(u){p=[u];return false}else j(p,r,o)}}});if(p.length){k.push({input:m,messages:p});m.trigger("OI",[p]);c.errorInputEvent&&m.bind(h,function(o){g.checkValidity(m,o)})}if(c.singleError&&k.length)return false});var n=q[c.effect];
if(!n)throw'Validator: cannot find effect "'+c.effect+'"';if(k.length){g.invalidate(k,d);return false}else{n[1].call(g,f,d);d.type="onSuccess";l.trigger(d,[f]);f.unbind(h)}return true}});e.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),function(f,d){e.isFunction(c[d])&&e(g).bind(d,c[d]);g[d]=function(k){e(g).bind(d,k);return g}});c.formEvent&&b.bind(c.formEvent,function(f){if(!g.checkValidity(null,f))return f.preventDefault()});b.bind("reset",function(){g.reset()});a[0]&&a[0].validity&&
a.each(function(){this.oninvalid=function(){return false}});if(b[0])b[0].checkValidity=g.checkValidity;c.inputEvent&&a.bind(c.inputEvent,function(f){g.checkValidity(e(this),f)});a.filter(":checkbox, select").filter("[required]").change(function(f){var d=e(this);if(this.checked||d.is("select")&&e(this).val())q[c.effect][1].call(g,d,f)})}e.tools=e.tools||{version:"1.2.2"};var x=/\[type=([a-z]+)\]/,y=/^-?[0-9]*(\.[0-9]+)?$/,z=/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,6})$/i,A=/^(https?:\/\/)?([\da-z\.\-]+)\.([a-z\.]{2,6})([\/\w \.\-]*)*\/?$/i,
i;i=e.tools.validator={conf:{grouped:false,effect:"default",errorClass:"invalid",inputEvent:null,errorInputEvent:"keyup",formEvent:"submit",lang:"en",message:"<div/>",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:false,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(a,b){e.each(b,function(c,j){i.messages[c]=i.messages[c]||{};i.messages[c][a]=j})},localizeFn:function(a,b){i.messages[a]=i.messages[a]||{};e.extend(i.messages[a],
b)},fn:function(a,b,c){if(e.isFunction(b))c=b;else{if(typeof b=="string")b={en:b};this.messages[a.key||a]=b}if(b=x.exec(a))a=w(b[1]);t.push([a,c])},addEffect:function(a,b,c){q[a]=[b,c]}};var t=[],q={"default":[function(a){var b=this.getConf();e.each(a,function(c,j){c=j.input;c.addClass(b.errorClass);var g=c.data("msg.el");if(!g){g=e(b.message).addClass(b.messageClass).appendTo(document.body);c.data("msg.el",g)}g.css({visibility:"hidden"}).find("span").remove();e.each(j.messages,function(l,f){e("<span/>").html(f).appendTo(g)});
g.outerWidth()==g.parent().width()&&g.add(g.find("p")).css({display:"inline"});j=v(c,g,b);g.css({visibility:"visible",position:"absolute",top:j.top,left:j.left}).fadeIn(b.speed)})},function(a){var b=this.getConf();a.removeClass(b.errorClass).each(function(){var c=e(this).data("msg.el");c&&c.css({visibility:"hidden"})})}]};e.each("email,url,number".split(","),function(a,b){e.expr[":"][b]=function(c){return c.getAttribute("type")===b}});e.fn.oninvalid=function(a){return this[a?"bind":"trigger"]("OI",
a)};i.fn(":email","Please enter a valid email address",function(a,b){return!b||z.test(b)});i.fn(":url","Please enter a valid URL",function(a,b){return!b||A.test(b)});i.fn(":number","Please enter a numeric value.",function(a,b){return y.test(b)});i.fn("[max]","Please enter a value smaller than $1",function(a,b){a=a.attr("max");return parseFloat(b)<=parseFloat(a)?true:[a]});i.fn("[min]","Please enter a value larger than $1",function(a,b){a=a.attr("min");return parseFloat(b)>=parseFloat(a)?true:[a]});
i.fn("[required]","Please complete this mandatory field.",function(a,b){if(a.is(":checkbox"))return a.is(":checked");return!!b});i.fn("[pattern]",function(a){var b=new RegExp("^"+a.attr("pattern")+"$");return b.test(a.val())});e.fn.validator=function(a){if(this.data("validator"))return this;a=e.extend(true,{},i.conf,a);if(this.is("form"))return this.each(function(){var c=e(this),j=new s(c.find(":input"),c,a);c.data("validator",j)});else{var b=new s(this,this.eq(0).closest("form"),a);return this.data("validator",
b)}}})(jQuery);
(function(){function f(a,b){if(b)for(key in b)if(b.hasOwnProperty(key))a[key]=b[key];return a}function l(a,b){var c=[];for(var d in a)if(a.hasOwnProperty(d))c[d]=b(a[d]);return c}function m(a,b,c){if(e.isSupported(b.version))a.innerHTML=e.getHTML(b,c);else if(b.expressInstall&&e.isSupported([6,65]))a.innerHTML=e.getHTML(f(b,{src:b.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!a.innerHTML.replace(/\s/g,"")){a.innerHTML="<h2>Flash version "+
b.version+" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+k+"'>here</a></p>");if(a.tagName=="A")a.onclick=function(){location.href=k}}if(b.onFail){var d=b.onFail.call(this);if(typeof d=="string")a.innerHTML=d}}if(h)window[b.id]=document.getElementById(b.id);f(this,{getRoot:function(){return a},getOptions:function(){return b},getConf:function(){return c},
getApi:function(){return a.firstChild}})}var h=document.all,k="http://www.adobe.com/go/getflashplayer",n=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,i={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(a,b,c){if(typeof a=="string")a=document.getElementById(a.replace("#",""));if(a){if(typeof b=="string")b={src:b};return new m(a,f(f({},i),b),c)}};var e=f(window.flashembed,{conf:i,getVersion:function(){var a;try{a=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(b){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=c&&c.GetVariable("$version")}catch(d){}}return(a=o.exec(a))?[a[1],a[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;
var b=typeof a;if(b=="object"&&a.push)b="array";switch(b){case "string":a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+a+'"';case "array":return"["+l(a,function(d){return e.asString(d)}).join(",")+"]";case "function":return'"function()"';case "object":b=[];for(var c in a)a.hasOwnProperty(c)&&b.push('"'+c+'":'+e.asString(a[c]));return"{"+b.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(a,b){a=f({},a);var c='<object width="'+
a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();c+=a.w3c||!h?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(a.w3c||h)c+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var d in a)if(a[d])c+='<param name="'+d+'" value="'+a[d]+'" />';a="";if(b){for(var j in b)if(b[j]){d=
b[j];a+=j+"="+(/function|object/.test(typeof d)?e.asString(d):d)+"&"}a=a.slice(0,-1);c+='<param name="flashvars" value=\''+a+"' />"}c+="</object>";return c},isSupported:function(a){return g[0]>a[0]||g[0]==a[0]&&g[1]>=a[1]}}),g=e.getVersion();if(n){jQuery.tools=jQuery.tools||{version:"1.2.2"};jQuery.tools.flashembed={conf:i};jQuery.fn.flashembed=function(a,b){return this.each(function(){$(this).data("flashembed",flashembed(this,a,b))})}}})();
(function(b){function h(c){if(c){var a=d.contentWindow.document;a.open().close();a.location.hash=c}}var g,d,f,i;b.tools=b.tools||{version:"1.2.2"};b.tools.history={init:function(c){if(!i){if(b.browser.msie&&b.browser.version<"8"){if(!d){d=b("<iframe/>").attr("src","javascript:false;").hide().get(0);b("body").append(d);setInterval(function(){var a=d.contentWindow.document;a=a.location.hash;g!==a&&b.event.trigger("hash",a)},100);h(location.hash||"#")}}else setInterval(function(){var a=location.hash;
a!==g&&b.event.trigger("hash",a)},100);f=!f?c:f.add(c);c.click(function(a){var e=b(this).attr("href");d&&h(e);if(e.slice(0,1)!="#"){location.href="#"+e;return a.preventDefault()}});i=true}}};b(window).bind("hash",function(c,a){a?f.filter(function(){var e=b(this).attr("href");return e==a||e==a.replace("#","")}).trigger("history",[a]):f.eq(0).trigger("history",[a]);g=a;window.location.hash=g});b.fn.history=function(c){b.tools.history.init(this);return this.bind("history",c)}})(jQuery);
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(window).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.2"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,f,g,j;b.mask={load:function(a,d){if(f)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(e){e.keyCode==
27&&b.mask.close(e)});a.closeOnClick&&c.bind("click.mask",function(e){b.mask.close(e)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var e=b(this);/relative|absolute|fixed/i.test(e.css("position"))||e.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad)});f=true;return this},close:function(){if(f){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j})});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask");f=false}return this},fit:function(){if(f){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(){return f},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);
(function(b){function c(a){switch(a.type){case "mousemove":return b.extend(a.data,{clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY});case "DOMMouseScroll":b.extend(a,a.data);a.delta=-a.detail/3;break;case "mousewheel":a.delta=a.wheelDelta/120;break}a.type="wheel";return b.event.handle.call(this,a,a.delta)}b.fn.mousewheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};b.event.special.wheel={setup:function(){b.event.add(this,d,c,{})},teardown:function(){b.event.remove(this,
d,c)}};var d=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":"")})(jQuery);
(function(a){a.fn.raptorize=function(t){t=a.extend({enterOn:"click",delayTime:5E3},t);return this.each(function(){function j(){O=true;y&&document.getElementById("elRaptorShriek").play();Q.animate({bottom:"0"},function(){a(this).animate({bottom:"-130px"},100,function(){var U=a(this).position().left+400;a(this).delay(300).animate({right:U},2200,function(){Q=a("#elRaptor").css({bottom:"-700px",right:"0"});O=false})})})}var J=a(this),y=false;if(a.browser.mozilla&&a.browser.version.substr(0,5)>="1.9.2"||
a.browser.webkit)y=true;var O=false;a("body").append('<img id="elRaptor" style="display: none" src="images/raptor.png" />');y&&a("body").append('<audio id="elRaptorShriek" preload="auto"><source src="sounds/raptor-sound.mp3" /><source src="sounds/raptor-sound.ogg" /></audio>');var Q=a("#elRaptor").css({position:"fixed",bottom:"-700px",right:"0",display:"block","z-index":"999999"});if(t.enterOn=="timer")setTimeout(j,t.delayTime);else if(t.enterOn=="click")J.bind("click",function(U){U.preventDefault();
O||j()});else if(t.enterOn=="konami-code"){var P=[];a(window).bind("keydown.raptorz",function(U){P.push(U.keyCode);if(P.toString().indexOf("38,38,40,40,37,39,37,39,66,65")>=0){j();a(window).unbind("keydown.raptorz")}},true)}})}})(jQuery);
(function(a,t,j){function J(){var e=t.console;return e&&(e.error||e.log||a.noop).apply(e,arguments)}function y(e){var b;if(!e||"object"!==typeof e)return l;if("object"!==typeof e.metadata)e.metadata={type:e.metadata};if("content"in e){if("object"!==typeof e.content||e.content.jquery)e.content={text:e.content};b=e.content.text||l;if(!a.isFunction(b)&&(!b&&!b.attr||b.length<1||"object"===typeof b&&!b.jquery))e.content.text=l;if("title"in e.content){if("object"!==typeof e.content.title)e.content.title=
{text:e.content.title};b=e.content.title.text||l;if(!a.isFunction(b)&&(!b&&!b.attr||b.length<1||"object"===typeof b&&!b.jquery))e.content.title.text=l}}if("position"in e)if("object"!==typeof e.position)e.position={my:e.position,at:e.position};if("show"in e)if("object"!==typeof e.show)e.show=e.show.jquery?{target:e.show}:{event:e.show};if("hide"in e)if("object"!==typeof e.hide)e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide};if("style"in e)if("object"!==typeof e.style)e.style={classes:e.style};
a.each(K,function(){this.sanitize&&this.sanitize(e)});return e}function O(e,b,q,m){function s(d){var f=0,i,o=b;for(d=d.split(".");o=o[d[f++]];)if(f<d.length)i=o;return[i||b,d.pop()]}function n(){return g&&g.css("left")!==na&&g.css("visibility")!=="hidden"}function r(){var d=b.style.widget;g.toggleClass(la,d);u.content.toggleClass(la+"-content",d);u.titlebar&&u.titlebar.toggleClass(la+"-header",d);u.button&&u.button.toggleClass(Y+"-icon",!d)}function D(){if(u.title){u.titlebar.remove();u.titlebar=
u.title=u.button=C;c.reposition()}}function z(){var d=b.content.title.button;u.button&&u.button.remove();u.button=d.jquery?d:a("<a />",{"class":"ui-state-default "+(b.style.widget?"":Y+"-icon"),title:"Close tooltip","aria-label":"Close tooltip"}).prepend(a("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));u.button.appendTo(u.titlebar).attr("role","button").hover(function(f){a(this).toggleClass("ui-state-hover",f.type==="mouseenter")}).click(function(f){g.hasClass(ba)||c.hide(f);return l}).bind("mousedown keydown mouseup keyup mouseout",
function(f){a(this).toggleClass("ui-state-active ui-state-focus",f.type.substr(-4)==="down")});c.redraw()}function L(){var d=w+"-title";u.titlebar&&D();u.titlebar=a("<div />",{"class":Y+"-titlebar "+(b.style.widget?"ui-widget-header":"")}).append(u.title=a("<div />",{id:d,"class":Y+"-title","aria-atomic":x})).insertBefore(u.content);if(b.content.title.button)z();else c.rendered&&c.redraw()}function E(d){var f=u.title;if(!c.rendered||!d)return l;if(a.isFunction(d))d=d.call(e,c)||"";d.jquery&&d.length>
0?f.empty().append(d.css({display:"block"})):f.html(d);c.redraw();c.rendered&&n()&&c.reposition(H.event)}function M(d){var f=u.content;if(!c.rendered||!d)return l;if(a.isFunction(d))d=d.call(e,c)||"";d.jquery&&d.length>0?f.empty().append(d.css({display:"block"})):f.html(d);g.queue("fx",function(i){function o(A){p=p.not(A);if(p.length===0){c.redraw();c.rendered&&n()&&c.reposition(H.event);i()}}var p=f.find("img:not([height]):not([width])");p.each(function(A,I){var T=["abort","error","load","unload",
""].join(".qtip-image ");a(this).bind(T,function(){clearTimeout(c.timers.img[A]);o(this)});(function B(){if(I.height&&I.width)return o(I);c.timers.img[A]=setTimeout(B,20)})();return x});p.length===0&&o(p)});return c}function ea(d,f,i,o){function p(k){if(g.hasClass(ba))return l;R.show.trigger("qtip-"+q+"-inactive");clearTimeout(c.timers.show);clearTimeout(c.timers.hide);var N=function(){c.show(k)};if(b.show.delay>0)c.timers.show=setTimeout(N,b.show.delay);else N()}function A(k){if(g.hasClass(ba))return l;
var N=a(k.relatedTarget||k.target),ca=N.closest(ja)[0]===g[0];N=N[0]===R.show[0];clearTimeout(c.timers.show);clearTimeout(c.timers.hide);if(F.target==="mouse"&&ca||b.hide.fixed&&/mouse(out|leave|move)/.test(k.type)&&(ca||N)){k.stopPropagation();k.preventDefault();return l}g.stop(1,1);if(b.hide.delay>0)c.timers.hide=setTimeout(function(){c.hide(k)},b.hide.delay);else c.hide(k)}function I(k){if(g.hasClass(ba))return l;clearTimeout(c.timers.inactive);c.timers.inactive=setTimeout(function(){c.hide(k)},
b.hide.inactive)}function T(k){n()&&c.reposition(k)}var B=".qtip-"+q,F=b.position,R={show:b.show.target,hide:b.hide.target,container:F.container[0]===v?document:F.container},da={show:String(b.show.event).split(" "),hide:String(b.hide.event).split(" ")},ga=a(document),V=a.browser.msie&&parseInt(a.browser.version,10)===6;if(i){if(b.hide.fixed){R.hide=R.hide.add(g);g.bind("mouseover"+B,function(){g.hasClass(ba)||clearTimeout(c.timers.hide)})}F.target==="mouse"&&g.bind("mouseleave"+B,function(k){if((k.relatedTarget||
k.target)!==R.show[0])c.hide(k)});g.bind("mouseenter"+B+" mouseleave"+B,function(k){c[k.type==="mouseenter"?"focus":"blur"](k)})}if(f){if("number"===typeof b.hide.inactive){R.show.bind("qtip-"+q+"-inactive",I);a.each(S.inactiveEvents,function(k,N){R.hide.add(u.tooltip).bind(N+B+"-inactive",I)})}a.each(da.hide,function(k,N){var ca=a.inArray(N,da.show),W=a(R.hide);if(ca>-1&&W.add(R.show).length===W.length||N==="unfocus"){R.show.bind(N+B,function(X){n()?A(X):p(X)});delete da.show[ca]}else R.hide.bind(N+
B,A)})}d&&a.each(da.show,function(k,N){R.show.bind(N+B,p)});if(o){if(F.adjust.resize||F.viewport)a(a.event.special.resize?F.viewport:t).bind("resize"+B,T);if(F.viewport||V&&g.css("position")==="fixed")a(F.viewport).bind("scroll"+B,T);/unfocus/i.test(b.hide.event)&&ga.bind("mousedown"+B,function(k){var N=a(k.target);N.parents(ja).length===0&&N.add(e).length>1&&n()&&!g.hasClass(ba)&&c.hide(k)});F.target==="mouse"&&ga.bind("mousemove"+B,function(k){if(F.adjust.mouse&&!g.hasClass(ba)&&n())c.reposition(k||
ma)})}}function h(d,f,i,o){o=parseInt(o,10)!==0;var p=".qtip-"+q;f={show:d?b.show.target:C,hide:f?b.hide.target:C,tooltip:i?u.tooltip:C,content:i?u.content:C,container:o?b.position.container[0]===v?document:b.position.container:C,window:o?t:C};if(c.rendered)a([]).pushStack(a.grep([f.show,f.hide,f.tooltip,f.container,f.content,f.window],function(){return this!==null})).unbind(p);else d&&f.show.unbind(p+"-create")}var c=this,v=document.body,w=Y+"-"+q,G=0,g,u,H;c.id=q;c.rendered=l;c.elements=u={target:e};
c.timers={img:[]};c.options=b;c.checks={};c.plugins={};c.cache=H={event:{},target:C,disabled:l,attr:m};c.checks.builtin={"^idjQuery":function(d,f,i){d=i===x?S.nextid:i;f=Y+"-"+d;if(d!==l&&d.length>0&&!a("#"+f).length){g[0].id=f;u.content[0].id=f+"-content";u.title[0].id=f+"-title"}},"^content.textjQuery":function(d,f,i){M(i)},"^content.title.textjQuery":function(d,f,i){if(!i)return D();!u.title&&i&&L();E(i)},"^content.title.buttonjQuery":function(d,f,i){d=u.button;f=u.title;if(c.rendered)if(i){f||L();z()}else d.remove()},
"^position.(my|at)jQuery":function(d,f,i){if("string"===typeof i)d[f]=new K.Corner(i)},"^position.containerjQuery":function(d,f,i){c.rendered&&g.appendTo(i)},"^(show|hide).(event|target|fixed|delay|inactive)jQuery":function(d,f,i,o){var p=f.search(/fixed/i)>-1?[0,[0,1,1,1]]:[f.substr(0,3),f.charAt(0)==="s"?[1,0,0,0]:[0,1,0,0]];if(p[0])d[f]=o;h.apply(c,p[1]);if(p[0])d[f]=i;ea.apply(c,p[1])},"^show.readyjQuery":function(){c.rendered||c.show()},"^style.classesjQuery":function(d,f,i){a.attr(g[0],"class",Y+" qtip ui-helper-reset "+
i)},"^style.widget|content.title":r,"^events.(render|show|move|hide|focus|blur)jQuery":function(d,f,i){g[(a.isFunction(i)?"":"un")+"bind"]("tooltip"+f,i)}};a.extend(c,{render:function(d){if(c.rendered)return l;var f=b.content.text,i=b.content.title.text,o=a.Event("tooltiprender");a.attr(e[0],"aria-describedby",w);g=u.tooltip=a("<div/>").attr({id:w,"class":Y+" qtip ui-helper-reset "+b.style.classes,role:"alert","aria-live":"polite","aria-atomic":l,"aria-describedby":w+"-content","aria-hidden":x}).toggleClass(ba,
H.disabled).data("qtip",c).appendTo(b.position.container).append(u.content=a("<div />",{"class":Y+"-content",id:w+"-content","aria-atomic":x}));c.rendered=x;if(i){L();E(i)}M(f);r();a.each(K,function(){this.initialize==="render"&&this(c)});ea(1,1,1,1);a.each(b.events,function(p,A){if(A)g.bind(p==="toggle"?"tooltipshow tooltiphide":"tooltip"+p,A)});g.css("visibility","hidden").queue("fx",function(p){o.originalEvent=H.event;g.trigger(o,[c]);if(b.show.ready||d)c.show(H.event);p()});return c},get:function(d){switch(d.toLowerCase()){case "dimensions":d=
{height:g.outerHeight(),width:g.outerWidth()};break;case "offset":d=K.offset(g,b.position.container);break;default:d=s(d.toLowerCase());d=d[0][d[1]];d=d.precedance?d.string():d}return d},set:function(d,f){var i=/^position.(my|at|adjust|target|container)|style|content/i,o=l,p=c.checks,A;if("string"===typeof d){A=d;d={};d[A]=f}else d=a.extend(x,{},d);a.each(d,function(I,T){var B=s(I.toLowerCase()),F;F=B[0][B[1]];B[0][B[1]]=T.nodeType?a(T):T;d[I]=[B[0],B[1],T,F];o=i.test(I)||o});y(b);G=1;a.each(d,function(I,
T){var B,F;if(c.rendered)for(B in p)for(F in p[B])RegExp(F,"i").test(I)&&p[B][F].apply(c,T);else if(I==="show.ready"&&T[2]){G=0;c.render(x)}});G=0;o&&n()&&c.rendered&&c.reposition();return c},toggle:function(d,f){function i(){if(d)a.browser.msie&&g[0].style.removeAttribute("filter");else g.css({display:"",visibility:"hidden",width:"",opacity:"",left:"",top:""})}if(!c.rendered)if(d)c.render(1);else return l;var o=d?"show":"hide",p=b[o],A=n();if((typeof d).search("boolean|number"))d=!A;if(A===d)return c;
if(f){if(/over|enter/.test(f.type)&&/out|leave/.test(H.event.type)&&f.target===b.show.target[0]&&g.has(f.relatedTarget).length)return c;H.event=a.extend({},f)}A=a.Event("tooltip"+o);A.originalEvent=f?H.event:C;g.trigger(A,[c,90]);if(A.isDefaultPrevented())return c;a.attr(g[0],"aria-hidden",!d);if(d){g.hide().css({visibility:""});c.focus(f);c.reposition(f,0);p.solo&&a(ja).not(g).qtip("hide",A)}else{clearTimeout(c.timers.show);c.blur(f)}g.stop(1,1);if(a.isFunction(p.effect)){p.effect.call(g,c);g.queue("fx",
function(I){i.call(this,I);I()})}else if(p.effect===l){g[o]();i.call(g)}else g.fadeTo(90,d?1:0,i);d&&p.target.trigger("qtip-"+q+"-inactive");return c},show:function(d){return c.toggle(x,d)},hide:function(d){return c.toggle(l,d)},focus:function(d){if(!c.rendered)return l;var f=a(ja),i=parseInt(g[0].style.zIndex,10),o=S.zindex+f.length;d=a.extend({},d);if(!g.hasClass(ka)){if(i!==o){f.each(function(){if(this.style.zIndex>i)this.style.zIndex-=1});f.filter("."+ka).qtip("blur",d)}f=a.Event("tooltipfocus");
f.originalEvent=d;g.trigger(f,[c,o]);if(!f.isDefaultPrevented())g.addClass(ka)[0].style.zIndex=o}return c},blur:function(d){d=a.extend({},d);var f;g.removeClass(ka);f=a.Event("tooltipblur");f.originalEvent=d;g.trigger(f,[c]);return c},reposition:function(d,f){if(!c.rendered||G)return l;G=x;var i=b.position.target,o=b.position,p=o.my,A=o.at,I=o.adjust,T=g.outerWidth(),B=g.outerHeight(),F=0,R=0,da=a.Event("tooltipmove"),ga=g.css("position")==="fixed",V=o.viewport.jquery?o.viewport:a(t),k={left:0,top:0},
N=(c.plugins.tip||{}).corner,ca={left:function(W){var X=V.scrollLeft,aa=A.x==="left"?F:A.x==="right"?-F:-F/2,Z=N&&N.precedance==="x"?S.defaults.style.tip.width:0,ha=X-W-Z;X=W+T-V.width-X+Z;aa=(p.x==="left"?T:p.x==="right"?-T:-T/2)-(p.precedance==="x"||p.x===p.y?aa:0);Z=p.x==="center";if(ha>0&&(p.x!=="left"||X>0))k.left-=aa+(Z?0:2*I.x);else if(X>0&&(p.x!=="right"||ha>0))k.left-=Z?-aa:aa+2*I.x;if(k.left!==W&&Z)k.left-=I.x;if(k.left<0&&-k.left>X)k.left=W;return k.left-W},top:function(W){var X=V.scrollTop,
aa=A.y==="top"?R:A.y==="bottom"?-R:-R/2,Z=N&&N.precedance==="y"?S.defaults.style.tip.height:0,ha=X-W-Z;X=W+B-V.height-X+Z;aa=(p.y==="top"?B:p.y==="bottom"?-B:-B/2)-(p.precedance==="y"||p.x===p.y?aa:0);Z=p.y==="center";if(ha>0&&(p.y!=="top"||X>0))k.top-=aa+(Z?0:2*I.y);else if(X>0&&(p.y!=="bottom"||ha>0))k.top-=Z?-aa:aa+2*I.y;if(k.top!==W&&Z)k.top-=I.y;if(k.top<0&&-k.top>X)k.top=W;return k.top-W}};f=f===j||!!f||l;V=!V?l:{elem:V,height:V[(V[0]===t?"h":"outerH")+"eight"](),width:V[(V[0]===t?"w":"outerW")+
"idth"](),scrollLeft:V.scrollLeft(),scrollTop:V.scrollTop()};if(i==="mouse"){A={x:"left",y:"top"};d=d&&(d.type==="resize"||d.type==="scroll")?H.event:I.mouse||!d||!d.pageX?a.extend({},ma):d;k={top:d.pageY,left:d.pageX}}else{if(i==="event")i=d&&d.target&&d.type!=="scroll"&&d.type!=="resize"?H.target=a(d.target):H.target;i=a(i).eq(0);if(i.length===0)return c;else if(i[0]===document||i[0]===t){F=i.width();R=i.height();if(i[0]===t)k={top:ga?0:V.scrollTop,left:ga?0:V.scrollLeft}}else if(i.is("area")&&
K.imagemap)k=K.imagemap(i,A);else if(i[0].namespaceURI=="http://www.w3.org/2000/svg"&&K.svg)k=K.svg(i,A);else{F=i.outerWidth();R=i.outerHeight();k=K.offset(i,o.container)}if(k.offset){F=k.width;R=k.height;k=k.offset}k.left+=A.x==="right"?F:A.x==="center"?F/2:0;k.top+=A.y==="bottom"?R:A.y==="center"?R/2:0}k.left+=I.x+(p.x==="right"?-T:p.x==="center"?-T/2:0);k.top+=I.y+(p.y==="bottom"?-B:p.y==="center"?-B/2:0);k.adjusted=o.viewport.jquery&&i[0]!==t&&i[0]!==v?{left:ca.left(k.left),top:ca.top(k.top)}:
{left:0,top:0};g.attr("class",function(){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(Y+"-pos-"+p.abbreviation());da.originalEvent=a.extend({},d);g.trigger(da,[c,k,V.elem]);if(da.isDefaultPrevented())return c;delete k.adjusted;if(!f||!isNaN(k.left,k.top))g.css(k);else if(n()&&a.isFunction(o.effect)){o.effect.call(g,c,k);g.queue(function(W){a(this).css({opacity:"",height:""});a.browser.msie&&this.style&&this.style.removeAttribute("filter");W()})}G=l;return c},redraw:function(){if(!c.rendered||
!(a.browser.msie&&a.browser.version<8))return l;var d=Y+"-fluid",f;g.css({width:"auto",height:"auto"}).addClass(d);f={height:g.outerHeight(),width:g.outerWidth()};a.each(["width","height"],function(i,o){var p=parseInt(g.css("max-"+o),10)||0,A=parseInt(g.css("min-"+o),10)||0;f[o]=p+A?Math.min(Math.max(f[o],A),p):f[o]});g.css(f).removeClass(d);return c},disable:function(d){var f=ba;if("boolean"!==typeof d)d=!(g.hasClass(f)||H.disabled);if(c.rendered){g.toggleClass(f,d);a.attr(g[0],"aria-disabled",d)}else H.disabled=
!!d;return c},enable:function(){c.disable(l)},destroy:function(){var d=e[0],f=a.data(d,ia);if(c.rendered){g.remove();a.each(c.plugins,function(){this.destroy&&this.destroy()})}clearTimeout(c.timers.show);clearTimeout(c.timers.hide);h(1,1,1,1);a.removeData(d,"qtip");f&&a.attr(d,"title",f);e.removeAttr("aria-describedby");return e}})}function Q(e,b){var q,m,s,n,r=a(this),D=a(document.body),z=this===document?D:r;m=r.metadata?r.metadata(b.metadata):C;n=b.metadata.type==="html5"&&m?m[b.metadata.name]:
C;var L=r.data(b.metadata.name||"qtipopts");try{L=typeof L==="string"?(new Function("return "+L))():L}catch(E){J("Unable to parse HTML5 attribute data: "+L)}n=a.extend(x,{},S.defaults,b,typeof L==="object"?y(L):C,y(n||m));m&&a.removeData(this,"metadata");m=n.position;n.id=e;if("boolean"===typeof n.content.text){s=r.attr(n.content.attr);if(n.content.attr!==l&&s)n.content.text=s;else return l}if(m.container===l)m.container=D;if(m.target===l)m.target=z;if(n.show.target===l)n.show.target=z;if(n.hide.target===
l)n.hide.target=z;if(n.position.viewport===x)n.position.viewport=m.container;m.at=new K.Corner(m.at);m.my=new K.Corner(m.my);if(a.data(this,"qtip"))if(n.overwrite)r.qtip("destroy");else if(n.overwrite===l)return l;if(a.attr(this,"title")){a.data(this,ia,a.attr(this,"title"));r.removeAttr("title")}q=new O(r,n,e,!!s);a.data(this,"qtip",q);r.bind("remove.qtip",function(){q.destroy()});return q}function P(e){var b=this,q=e.elements.tooltip,m=e.options.content.ajax,s=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;
e.checks.ajax={"^content.ajax":function(n,r,D){if(r==="ajax")m=D;if(r==="once")b.once(m.once);else if(m&&m.url)b.load();else b.once(0)}};a.extend(b,{init:function(){if(m&&m.url){b.load();q.one("tooltipshow",function(){b.once(m.once)})}},once:function(n){q[(n?"un":"")+"bind"]("tooltipshow.qtip-ajax",b.load)},load:function(){var n=m.url.indexOf(" "),r=m.url,D;if(n>-1){D=r.substr(n);r=r.substr(0,n)}a.ajax(a.extend({success:function(z){if(D)z=a("<div/>").append(z.replace(s,"")).find(D);e.set("content.text",
z)},error:function(z,L,E){e.set("content.text",L+": "+E)},context:e},m,{url:r}));return b}});b.init()}function U(e,b,q){var m=Math.ceil(b/2),s=Math.ceil(q/2);b={bottomright:[[0,0],[b,q],[b,0]],bottomleft:[[0,0],[b,0],[0,q]],topright:[[0,q],[b,0],[b,q]],topleft:[[0,0],[0,q],[b,q]],topcenter:[[0,q],[m,0],[b,q]],bottomcenter:[[0,0],[b,0],[m,q]],rightcenter:[[0,0],[b,s],[0,q]],leftcenter:[[b,0],[b,q],[0,s]]};b.lefttop=b.bottomright;b.righttop=b.bottomleft;b.leftbottom=b.topright;b.rightbottom=b.topleft;
return b[e.string()]}function fa(e){function b(h,c,v){if(r.tip){h=a.extend({},s.corner);c=v.adjusted;var w;if(s.corner.fixed!==x){if(c.left)h.x=h.x==="center"?c.left>0?"left":"right":h.x==="left"?"right":"left";if(c.top)h.y=h.y==="center"?c.top>0?"top":"bottom":h.y==="top"?"bottom":"top";if(h.string()!==z.corner&&(z.top!==c.top||z.left!==c.left))w=s.update(h)}w||(w=s.position(h,0));if(w.right!==j)w.left=w.right;if(w.bottom!==j)w.top=w.bottom;w.option=Math.max(0,n.offset);v.left-=w.left.charAt?w.option:
(w.right?-1:1)*w.left;v.top-=w.top.charAt?w.option:(w.bottom?-1:1)*w.top;z.left=c.left;z.top=c.top;z.corner=h.string()}}function q(h,c,v){c=!c?h[h.precedance]:c;c="border-"+c+"-width";h=parseInt((r.titlebar&&h.y==="top"?r.titlebar:r.content).css(c),10);return(v?h||parseInt(D.css(c),10):h)||0}function m(h){var c=h.precedance==="y",v=L[c?"width":"height"],w=L[c?"height":"width"],G=h.string().indexOf("center")>-1,g=v*(G?0.5:1),u=Math.pow;h=Math.round;var H=Math.sqrt(u(g,2)+u(w,2));g=[M/g*H,M/w*H];g[2]=
Math.sqrt(u(g[0],2)-u(M,2));g[3]=Math.sqrt(u(g[1],2)-u(M,2));G=(H+g[2]+g[3]+(G?0:g[0]))/H;v=[h(G*w),h(G*v)];return{height:v[c?0:1],width:v[c?1:0]}}var s=this,n=e.options.style.tip,r=e.elements,D=r.tooltip,z={top:0,left:0,corner:""},L={width:n.width,height:n.height},E={},M=n.border||0,ea=a("<canvas />")[0].getContext;s.corner=C;s.mimic=C;e.checks.tip={"^position.my|style.tip.(corner|mimic|border)jQuery":function(){s.init()||s.destroy();e.reposition()},"^style.tip.(height|width)jQuery":function(){L={width:n.width,
height:n.height};s.create();s.update();e.reposition()},"^content.title.text|style.(classes|widget)jQuery":function(){r.tip&&s.update()}};a.extend(s,{init:function(){var h=s.detectCorner()&&(ea||a.browser.msie);if(h){s.create();s.update();D.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",b)}return h},detectCorner:function(){var h=n.corner,c=e.options.position,v=c.at;c=c.my.string?c.my.string():c.my;if(h===l||c===l&&v===l)return l;else if(h===x)s.corner=new K.Corner(c);else if(!h.string){s.corner=new K.Corner(h);
s.corner.fixed=x}return s.corner.string()!=="centercenter"},detectColours:function(){var h=r.tip.css({backgroundColor:"",border:""}),c=s.corner,v=c[c.precedance],w="border-"+v+"-color";v="border"+v.charAt(0)+v.substr(1)+"Color";var G=/rgba?\(0, 0, 0(, 0)?\)|transparent/i;c=r.titlebar&&(c.y==="top"||c.y==="center"&&h.position().top+L.height/2+n.offset<r.titlebar.outerHeight(1))?r.titlebar:r.content;E.fill=h.css("background-color")||"transparent";E.border=h[0].style[v];if(!E.fill||G.test(E.fill)){E.fill=
c.css("background-color");if(G.test(E.fill))E.fill=D.css("background-color")}if(!E.border||G.test(E.border)){E.border=D.css(w);if(G.test(E.border)||E.border===a(document.body).css("color"))E.border=c.css(w)!==a(e.elements.content).css("color")?c.css(w):"transparent"}a("*",h).add(h).css("background-color","transparent").css("border","0px dashed transparent")},create:function(){var h=L.width,c=L.height;r.tip&&r.tip.remove();r.tip=a("<div />",{"class":"ui-tooltip-tip"}).css({width:h,height:c}).prependTo(D);
if(ea)a("<canvas />").appendTo(r.tip)[0].getContext("2d").save();else{h='<vml:shape coordorigin="0,0" style="display:block; position:absolute; behavior:url(#default#VML);"></vml:shape>';r.tip.html(M?h+=h:h)}},update:function(h){var c=r.tip,v=c.children(),w=L.width,G=L.height,g=n.mimic,u=Math.round,H,d,f;if(!h)h=s.corner;if(g===l)g=h;else{g=new K.Corner(g);g.precedance=h.precedance;if(g.x==="inherit")g.x=h.x;else if(g.y==="inherit")g.y=h.y;else if(g.x===g.y)g[h.precedance]=h[h.precedance]}H=g.precedance;
s.detectColours();M=E.border==="transparent"||E.border==="#123456"?0:n.border===x?q(h,C,x):n.border;d=U(g,w,G);f=m(h);c.css(f);c=h.precedance==="y"?[u(g.x==="left"?M:g.x==="right"?f.width-w-M:(f.width-w)/2),u(g.y==="top"?f.height-G:0)]:[u(g.x==="left"?f.width-w:0),u(g.y==="top"?M:g.y==="bottom"?f.height-G-M:(f.height-G)/2)];if(ea){v.attr(f);v=v[0].getContext("2d");v.restore();v.save();v.clearRect(0,0,3E3,3E3);v.translate(c[0],c[1]);v.beginPath();v.moveTo(d[0][0],d[0][1]);v.lineTo(d[1][0],d[1][1]);
v.lineTo(d[2][0],d[2][1]);v.closePath();v.fillStyle=E.fill;v.strokeStyle=E.border;v.lineWidth=M*2;v.lineJoin="miter";v.miterLimit=100;v.stroke();v.fill()}else{d="m"+d[0][0]+","+d[0][1]+" l"+d[1][0]+","+d[1][1]+" "+d[2][0]+","+d[2][1]+" xe";c[2]=M&&/^(r|b)/i.test(h.string())?1:0;v.css({antialias:""+(g.string().indexOf("center")>-1),left:c[0]-c[2]*Number(H==="x"),top:c[1]-c[2]*Number(H==="y"),width:w+M,height:G+M}).each(function(i){var o=a(this);o.attr({coordsize:w+M+" "+(G+M),path:d,fillcolor:E.fill,
filled:!!i,stroked:!i}).css({display:M||i?"block":"none"});!i&&M>0&&o.html()===""&&o.html('<vml:stroke weight="'+M*2+'px" color="'+E.border+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:block;" />')})}return s.position(h,1)},position:function(h,c){var v=r.tip,w={},G=Math.max(0,n.offset),g,u,H;if(n.corner===l||!v)return l;h=h||s.corner;g=h.precedance;u=m(h);H=a.browser.msie&&M&&/^(b|r)/i.test(h.string())?1:0;a.each(g==="y"?[h.x,h.y]:[h.y,h.x],function(d,f){var i,
o;if(f==="center"){i=g==="y"?"left":"top";w[i]="50%";w["margin-"+i]=-Math.round(u[g==="y"?"width":"height"]/2)+G}else{i=q(h,f,x);o=a.browser.mozilla;var p=h.y+(o?"":"-")+h.x;o=(o?"-moz-":a.browser.webkit?"-webkit-":"")+(o?"border-radius-"+p:"border-"+p+"-radius");o=parseInt((r.titlebar&&h.y==="top"?r.titlebar:r.content).css(o),10)||parseInt(D.css(o),10)||0;w[f]=d||!M?q(h,f)+(!d?o:0):G+(o>i?o:0)}});w[h[g]]-=u[g==="x"?"width":"height"]+H;c&&v.css({top:"",bottom:"",left:"",right:"",margin:""}).css(w);
return w},destroy:function(){r.tip&&r.tip.remove();D.unbind(".qtip-tip")}});s.init()}var x=true,l=false,C=null,S,K,ma,Y="ui-tooltip",la="ui-widget",ba="ui-state-disabled",ja="div.qtip."+Y,ka=Y+"-focus",na="-31000px",ia="oldtitle";S=a.fn.qtip=function(e,b,q){var m=String(e).toLowerCase(),s=C,n=m==="disable"?[x]:a.makeArray(arguments).slice(1,10),r=n[n.length-1],D=this[0]?a.data(this[0],"qtip"):C;if(!arguments.length&&D||m==="api")return D;else if("string"===typeof e){this.each(function(){var z=a.data(this,
"qtip");if(!z)return x;if(r&&r.timeStamp)z.cache.event=r;if(m==="option"&&b)if(a.isPlainObject(b)||q!==j)z.set(b,q);else{s=z.get(b);return l}else z[m]&&z[m].apply(z[m],n)});return s!==C?s:this}else if("object"===typeof e||!arguments.length){D=y(a.extend(x,{},e));return S.bind.call(this,D,r)}};S.bind=function(e,b){return this.each(function(){function q(L){function E(){z.render(typeof L==="object"||m.show.ready);s.show.unbind(n.show);s.hide.unbind(n.hide)}if(z.cache.disabled)return l;z.cache.event=
a.extend({},L);if(m.show.delay>0){clearTimeout(z.timers.show);z.timers.show=setTimeout(E,m.show.delay);n.show!==n.hide&&s.hide.bind(n.hide,function(){clearTimeout(z.timers.show)})}else E()}var m,s,n,r=!e.id||e.id===l||e.id.length<1||a("#"+Y+"-"+e.id).length?S.nextid++:e.id,D=".qtip-"+r+"-create",z=Q.call(this,r,e);if(z===l)return x;m=z.options;a.each(K,function(){this.initialize==="initialize"&&this(z)});s={show:m.show.target,hide:m.hide.target};n={show:String(m.show.event).replace(" ",D+" ")+D,hide:String(m.hide.event).replace(" ",
D+" ")+D};s.show.bind(n.show,q);if(m.show.ready||m.prerender)q(b)})};K=S.plugins={Corner:function(e){e=String(e).replace(/([A-Z])/," jQuery1").replace(/middle/gi,"center").toLowerCase();this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase();this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=e.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var b=
this.x.substr(0,1),q=this.y.substr(0,1);return b===q?b:b==="c"||b!=="c"&&q!=="c"?q+b:b+q}},offset:function(e,b){var q=e.offset(),m=b,s=0,n=document.body,r;if(m){do if(m[0]===n)break;else if(m.css("position")!=="static"){r=m.position();q.left-=r.left;q.top-=r.top;s++}while(m=m.offsetParent());if(b[0]!==n||K.iOS){r=K.iOS?-1:1;q.left+=r*b.scrollLeft();q.top+=r*b.scrollTop()}}return q},iOS:parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<
4.1,fn:{attr:function(e,b){if(this.length){var q=this[0],m=a.data(q,"qtip");if(e==="title")if(arguments.length<2)return a.data(q,ia);else if(typeof m==="object"){m&&m.rendered&&m.options.content.attr==="title"&&m.cache.attr&&m.set("content.text",b);a.fn.attr_replacedByqTip.apply(this,arguments);a.data(q,ia,a.attr(q,"title"));return this.removeAttr("title")}}},clone:function(){var e=a([]),b;a("*",this).add(this).each(function(){var q=a.data(this,ia);if(q){a.attr(this,"title",q);e=e.add(this)}});b=
a.fn.clone_replacedByqTip.apply(this,arguments);e.removeAttr("title");return b},remove:a.ui?C:function(e,b){a(this).each(function(){if(!b)if(!e||a.filter(e,[this]).length)a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}};a.each(K.fn,function(e,b){if(!b)return x;var q=a.fn[e+"_replacedByqTip"]=a.fn[e];a.fn[e]=function(){return b.apply(this,arguments)||q.apply(this,arguments)}});a(t).bind("load.qtip",function(){a(document).bind("mousemove.qtip",function(e){ma={pageX:e.pageX,
pageY:e.pageY,type:"mousemove"}})});S.version="nightly";S.nextid=0;S.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");S.zindex=15E3;S.defaults={prerender:l,id:l,overwrite:x,content:{text:x,attr:"title",title:{text:l,button:l}},position:{my:"top left",at:"bottom right",target:l,container:l,viewport:l,adjust:{x:0,y:0,mouse:x,resize:x},effect:x},show:{target:l,event:"mouseenter",effect:x,delay:90,solo:l,ready:l},hide:{target:l,event:"mouseleave",effect:x,delay:0,
fixed:l,inactive:l},style:{classes:"",widget:l},events:{render:C,move:C,show:C,hide:C,toggle:C,focus:C,blur:C}};K.ajax=function(e){var b=e.plugins.ajax;return"object"===typeof b?b:e.plugins.ajax=new P(e)};K.ajax.initialize="render";K.ajax.sanitize=function(e){var b=e.content;if(b&&"ajax"in b){b=b.ajax;if(typeof b!=="object")b=e.content.ajax={url:b};if("boolean"!==typeof b.once&&b.once)b.once=!!b.once}};a.extend(x,S.defaults,{content:{ajax:{once:x}}});K.tip=function(e){var b=e.plugins.tip;return"object"===
typeof b?b:e.plugins.tip=new fa(e)};K.tip.initialize="render";K.tip.sanitize=function(e){var b=e.style;if(b&&"tip"in b){b=e.style.tip;if(typeof b!=="object")e.style.tip={corner:b};if(!/string|boolean/i.test(typeof b.corner))b.corner=x;typeof b.width!=="number"&&delete b.width;typeof b.height!=="number"&&delete b.height;typeof b.border!=="number"&&b.border!==x&&delete b.border;typeof b.offset!=="number"&&delete b.offset}};a.extend(x,S.defaults,{style:{tip:{corner:x,mimic:l,width:6,height:6,border:x,
offset:0}}})})(jQuery,window);
(function(a){domSplit=function(t,j){var J=0,y=[],O=function(Q){var P=0,U;if(!(J>j))for(P=0;P<Q.length;P+=1)if(Q[P].nodeType===1){U=Q[P].cloneNode(false);y[y.length-1].appendChild(U);y.push(U);O(Q[P].childNodes);y.pop()}else if(Q[P].nodeType===3){if(J+Q[P].length<j)y[y.length-1].appendChild(Q[P].cloneNode(false));else{U=Q[P].cloneNode(false);U.textContent=a.trim(U.textContent.substring(0,j-J));y[y.length-1].appendChild(U)}J+=Q[P].length}else y.appendChild(Q[P].cloneNode(false))};y.push(t.cloneNode(false));
O(t.childNodes);return a(y.pop().childNodes)};a.extend(a.fn,{textOverflowMousetip:function(t,j,J){var y=t||"&#x2026;";return this.each(function(){var O=a(this),Q=O.clone(),P=O.clone(),U=O.text(),fa=O.width(),x=0,l=0,C=U.length,S=function(){if(fa!==O.width()){O.replaceWith(P);O=P;P=O.clone();O.textOverflowMousetip(t,false,true);fa=O.width()}};O.after(Q.hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"}));if(Q.width()>fa){for(J&&O.mouseTip();x<C;){l=Math.floor(x+
(C-x)/2);a.support.opacity&&Q.empty().append(domSplit(P.get(0),l)).append(y);if(Q.width()<fa)x=l+1;else C=l}x<U.length&&a.support.opacity&&O.empty().append(domSplit(P.get(0),x-1)).append(y)}else J&&O.removeAttr("title").removeClass("ellipsis");Q.remove();j&&setInterval(S,200)})}})})(jQuery);
function closeModal(){jQuery("#"+jQuery(this).parents(".ui-dialog-content").attr("id")).dialog("close")}function loveBears(){window.open("http://www.thingsbearslove.com/","_self","")}function goGoGadgetRaptor(){jQuery("#modal-action-0").raptorize()}
(function(a){a.fn.animateMessage=function(t){a.fn.animateMessage.defaults={fadeAway:false};var j=a.extend({},a.fn.animateMessage.defaults,t);return this.each(function(){var J=a(this);J.css({opacity:"0"}).fadeTo(800,1);j.fadeAway&&setTimeout(function(){J.fadeTo(800,0);setTimeout(function(){J.remove()},4E3)},11E3)})}})(jQuery);
(function(a){a.getModalWindow=function(t){a.getModalWindow.defaults={dialogID:"#modal-dialog-",triggerID:"#modal-trigger-",cancelID:"#cancel-modal-",buttonID:"#modal-action-"};var j=a.extend({},a.getModalWindow.defaults,t);a(j.dialogID+j.count).dialog({autoOpen:false,open:function(){a(".ui-widget-overlay").hide().fadeIn(250)},draggable:false,closeText:"",maxHeight:600,modal:true,resizable:false,position:["center","center"],show:{effect:"fade",duration:250},hide:{effect:"fade",duration:100}});a(j.triggerID+
j.count).click(function(J){a(j.dialogID+j.count).dialog("open");J.preventDefault()});a(j.cancelID+j.count).click(function(J){a(j.dialogID+j.count).dialog("close");J.preventDefault()});a(window).resize(function(){a(j.dialogID+j.count).dialog("option","position",["center","center"])});a(".ui-widget-overlay").live("click",function(){a(j.dialogID+j.count).dialog("close")});j.primaryButtons&&!a.isEmptyObject(j.primaryButtons.actions)&&a(j.primaryButtons.actions).each(function(J,y){y.button===j.count&&
a(j.buttonID+j.count).click(function(){return y.args?y.method.apply(this,y.args):y.method.apply(this,[])})})}})(jQuery);
(function(a){a.fn.mouseTip=function(t){a.fn.mouseTip.defaults={tipContent:{attr:a(this).attr("title")},tipClass:"mousetip",tipStyle:{margin:"0"},hideEvent:"mouseleave",hideDelay:150,showDelay:700,tipPositionTarget:"mouse",tipViewPort:a(window)};var j=a.extend({},a.fn.mouseTip.defaults,t);t={content:{text:j.tipContent},events:{render:function(){a("."+j.tipClass).css(j.tipStyle)}},hide:{delay:j.hideDelay,event:j.hideEvent},position:{target:j.tipPositionTarget,viewport:j.tipViewPort,at:"bottom right",
my:"bottom left",adjust:{x:5,y:50}},show:{delay:j.showDelay,solo:true,target:a(this)},style:{classes:j.tipClass,tip:{corner:false}}};a(this).qtip(a.extend(true,t,{}))}})(jQuery);
(function(a){a.fn.mouseTip=function(t){a.fn.mouseTip.defaults={tipContent:{attr:a(this).attr("title")},tipClass:"mousetip",tipStyle:{margin:"0"},hideEvent:"mouseleave",hideDelay:150,showDelay:700,tipPositionTarget:"mouse",tipViewPort:a(window)};var j=a.extend({},a.fn.mouseTip.defaults,t);t={content:{text:j.tipContent},events:{render:function(){a("."+j.tipClass).css(j.tipStyle)}},hide:{delay:j.hideDelay,event:j.hideEvent},position:{target:j.tipPositionTarget,viewport:j.tipViewPort,at:"bottom right",
my:"bottom left",adjust:{x:5,y:50}},show:{delay:j.showDelay,solo:true,target:a(this)},style:{classes:j.tipClass,tip:{corner:false}}};a(this).qtip(a.extend(true,t,{}))}})(jQuery);
(function(a){a.fn.stationaryTip=function(t){a.fn.stationaryTip.defaults={tipContent:a(this).attr("href"),tipClass:"stationary",hideEvent:"mouseout",hideDelay:250,isFixed:true,tipPositionAdjust:{x:5,y:-12},tipPositionAt:"right center",tipPositionMy:"left top",tipPositionTarget:false,tipViewPort:a(window),showDelay:500,caretStyle:{border:2,corner:true,height:13,mimic:"left center",offset:8,width:7}};var j=a.extend({},a.fn.stationaryTip.defaults,t);t={content:{text:function(){return a(j.tipContent).html()}},
events:{render:function(){a("."+j.tipClass)}},hide:{delay:j.hideDelay,event:j.hideEvent,fixed:j.isFixed},position:{adjust:j.tipPositionAdjust,at:j.tipPositionAt,my:j.tipPositionMy,target:j.tipPositionTarget,viewport:j.tipViewPort},show:{delay:j.showDelay,solo:true},style:{classes:j.tipClass,tip:j.caretStyle}};a(this).qtip(a.extend(true,t,{}))}})(jQuery);
(function(a){a.symphonyButtons=function(){if(a(".symphony-button").length){var t="";t=a.browser.opera?"active-state-opera":"active-state";a(".symphony-button").each(function(j,J){a(J).bind({click:function(y){a(this).hasClass("disabled")&&a(this).get(0).nodeName.toLowerCase()==="a"&&y.preventDefault();a(this).get(0)==document.activeElement?a(this).addClass("focus-state"):a(this).blur()},mousedown:function(){a(this).addClass(t)},mouseup:function(){a(this).removeClass(t)},blur:function(){a(this).get(0).nodeName.toLowerCase()===
"a"||a(this).get(0).nodeName.toLowerCase()==="button"?a(this).removeClass("focus-state "+t):a(this).removeClass("focus-state")},focus:function(){a(this).addClass("focus-state")},keypress:function(y){if((a(this).get(0).nodeName.toLowerCase()==="a"||a(this).get(0).nodeName.toLowerCase()==="button")&&y.keyCode==13)a(this).click().addClass(t)},keyup:function(y){if((a(this).get(0).nodeName.toLowerCase()==="a"||a(this).get(0).nodeName.toLowerCase()==="button")&&y.keyCode==13)a(this).removeClass(t)}})}).filter("label").each(function(j,
J){a(J).bind({mouseenter:function(){a(this).addClass("hover-state").removeClass("focus-state")},mouseleave:function(){a(this).removeClass("hover-state");a(this).children("input").get(0)==document.activeElement&&a(J).addClass("focus-state")}}).children("input").bind({focus:function(){a(this).parent().addClass("focus-state")},blur:function(){a(this).parent().removeClass("focus-state "+t)},keydown:function(y){y.keyCode==13&&a(this).parent().addClass(t)},keyup:function(){a(this).parent().removeClass(t);
a(this).get(0)==document.activeElement&&a(this).parent().addClass("focus-state")}})})}}})(jQuery);
(function(jQuery) {
    jQuery.fn.stationaryTip = function(options) {
        jQuery.fn.stationaryTip.defaults = {
            tipContent: jQuery(this).attr('href'),
            tipClass: 'stationary',
            hideEvent: 'mouseout',
            hideDelay: 250,
            isFixed: true,
            tipPositionAdjust: { x: 5, y: -12 },
            tipPositionAt: 'right center',
            tipPositionMy: 'left top',
            tipPositionTarget: false,
            tipViewPort: jQuery(window),
            showDelay: 500,
            caretStyle: { border: 2, corner: true, height: 13, mimic: 'left center', offset: 8, width: 7 }
        };
        var opts = jQuery.extend({}, jQuery.fn.stationaryTip.defaults, options);
        var shared = {
            content: {
                text: jQuery(opts.tipContent).html()
            },
            events: {
                render: function() {
                    jQuery('.' + opts.tipClass);
                }
            },
            hide: {
                delay: opts.hideDelay,
                event: opts.hideEvent,
                fixed: opts.isFixed
            },
            position: {
                adjust: opts.tipPositionAdjust,
                at: opts.tipPositionAt,
                my: opts.tipPositionMy,
                target: opts.tipPositionTarget,
                viewport: opts.tipViewPort
            },
            show: {
                delay: opts.showDelay,
                solo: true
            },
            style: {
                classes: opts.tipClass,
                tip: opts.caretStyle
            }
        };
        jQuery(this).qtip(jQuery.extend(true, shared, {}));
    }
})(jQuery);
(function(a){function c(a,b,c){var d=a.children(),e=!1;a.empty();for(var g=0,h=d.length;h>g;g++){var i=d.eq(g);if(a.append(i),c&&a.append(c),f(a,b)){i.remove(),e=!0;break}c&&c.remove()}return e}function d(b,c,g,h,i){var j=b.contents(),k=!1;b.empty();for(var l="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, select, optgroup, option, textarea, script, style",m=0,n=j.length;n>m&&!k;m++){var o=j[m],p=a(o);void 0!==o&&(b.append(p),i&&b[b.is(l)?"after":"append"](i),3==o.nodeType?f(g,h)&&(k=e(p,c,g,h,i)):k=d(p,c,g,h,i),k||i&&i.remove())}return k}function e(a,b,c,d,h){var k=!1,l=a[0];if(l===void 0)return!1;for(var m="letter"==d.wrap?"":" ",n=j(l).split(m),o=-1,p=-1,q=0,r=n.length-1;r>=q;){var s=Math.floor((q+r)/2);if(s==p)break;p=s,i(l,n.slice(0,p+1).join(m)+d.ellipsis),f(c,d)?r=p:(o=p,q=p)}if(-1==o||1==n.length&&0==n[0].length){var u=a.parent();a.remove();var v=h?h.length:0;if(u.contents().size()>v){var w=u.contents().eq(-1-v);k=e(w,b,c,d,h)}else{var x=u.prev(),l=x.contents().eq(-1)[0];if(l!==void 0){var t=g(j(l),d);i(l,t),h&&x.append(h),u.remove(),k=!0}}}else{var t=g(n.slice(0,o+1).join(m),d);k=!0,i(l,t)}return k}function f(a,b){return a.innerHeight()>b.maxHeight}function g(b,c){for(;a.inArray(b.slice(-1),c.lastCharacter.remove)>-1;)b=b.slice(0,-1);return 0>a.inArray(b.slice(-1),c.lastCharacter.noEllipsis)&&(b+=c.ellipsis),b}function h(a){return{width:a.innerWidth(),height:a.innerHeight()}}function i(a,b){a.innerText?a.innerText=b:a.nodeValue?a.nodeValue=b:a.textContent&&(a.textContent=b)}function j(a){return a.innerText?a.innerText:a.nodeValue?a.nodeValue:a.textContent?a.textContent:""}function k(b,c){return b===void 0?!1:b?"string"==typeof b?(b=a(b,c),b.length?b:!1):"object"==typeof b?b.jquery===void 0?!1:b:!1:!1}function l(a){for(var b=a.innerHeight(),c=["paddingTop","paddingBottom"],d=0,e=c.length;e>d;d++){var f=parseInt(a.css(c[d]),10);isNaN(f)&&(f=0),b-=f}return b}function m(a,b){return a?(b="string"==typeof b?"dotdotdot: "+b:["dotdotdot:",b],window.console!==void 0&&window.console.log!==void 0&&window.console.log(b),!1):!1}if(!a.fn.dotdotdot){a.fn.dotdotdot=function(e){if(0==this.length)return e&&e.debug===!1||m(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){a(this).dotdotdot(e)});var g=this;g.data("dotdotdot")&&g.trigger("destroy.dot"),g.data("dotdotdot-style",g.attr("style")),g.css("word-wrap","break-word"),g.bind_events=function(){return g.bind("update.dot",function(b,e){b.preventDefault(),b.stopPropagation(),j.maxHeight="number"==typeof j.height?j.height:l(g),j.maxHeight+=j.tolerance,e!==void 0&&(("string"==typeof e||e instanceof HTMLElement)&&(e=a("<div />").append(e).contents()),e instanceof a&&(i=e)),q=g.wrapInner('<div class="dotdotdot" />').children(),q.empty().append(i.clone(!0)).css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var h=!1,k=!1;return n.afterElement&&(h=n.afterElement.clone(!0),n.afterElement.remove()),f(q,j)&&(k="children"==j.wrap?c(q,j,h):d(q,g,q,j,h)),q.replaceWith(q.contents()),q=null,a.isFunction(j.callback)&&j.callback.call(g[0],k,i),n.isTruncated=k,k}).bind("isTruncated.dot",function(a,b){return a.preventDefault(),a.stopPropagation(),"function"==typeof b&&b.call(g[0],n.isTruncated),n.isTruncated}).bind("originalContent.dot",function(a,b){return a.preventDefault(),a.stopPropagation(),"function"==typeof b&&b.call(g[0],i),i}).bind("destroy.dot",function(a){a.preventDefault(),a.stopPropagation(),g.unwatch().unbind_events().empty().append(i).attr("style",g.data("dotdotdot-style")).data("dotdotdot",!1)}),g},g.unbind_events=function(){return g.unbind(".dot"),g},g.watch=function(){if(g.unwatch(),"window"==j.watch){var b=a(window),c=b.width(),d=b.height();b.bind("resize.dot"+n.dotId,function(){c==b.width()&&d==b.height()&&j.windowResizeFix||(c=b.width(),d=b.height(),p&&clearInterval(p),p=setTimeout(function(){g.trigger("update.dot")},10))})}else o=h(g),p=setInterval(function(){var a=h(g);(o.width!=a.width||o.height!=a.height)&&(g.trigger("update.dot"),o=h(g))},100);return g},g.unwatch=function(){return a(window).unbind("resize.dot"+n.dotId),p&&clearInterval(p),g};var i=g.contents(),j=a.extend(!0,{},a.fn.dotdotdot.defaults,e),n={},o={},p=null,q=null;return n.afterElement=k(j.after,g),n.isTruncated=!1,n.dotId=b++,g.data("dotdotdot",!0).bind_events().trigger("update.dot"),j.watch&&g.watch(),g},a.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",lastCharacter:{remove:[" ",",",";",".","!","?"],noEllipsis:[]},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0,debug:!1};var b=1,n=a.fn.html;a.fn.html=function(a){return a!==void 0?this.data("dotdotdot")&&"function"!=typeof a?this.trigger("update",[a]):n.call(this,a):n.call(this)};var o=a.fn.text;a.fn.text=function(b){if(b!==void 0){if(this.data("dotdotdot")){var c=a("<div />");return c.text(b),b=c.html(),c.remove(),this.trigger("update",[b])}return o.call(this,b)}return o.call(this)}}})(jQuery);
(function(){var d=[],h={},e,i,j,f,c,g;i="undefined"!==typeof opera&&"[object Opera]"===opera.toString();j=document.getElementsByTagName("head")[0];f=!0;g=document.getElementsByTagName("script");for(c=0;c<g.length;c++)if("live"==g[c].getAttribute("data-marketing-environment")){f=!1;break}e=function(b){var a=document.createElement("script");h[b]||(h[b]=!0,a.type="text/javascript",a.charset="utf-8",a.async=!0,a.attachEvent&&!i&&!(a.attachEvent.toString&&0>a.attachEvent.toString().indexOf("[native code"))?
a.attachEvent("onreadystatechange",resolve):a.addEventListener("load",resolve,!1),a.src=b,j.appendChild(a))};d=[];resolve=function(){var b=window.jQuery,a=!0;b||(e("//static.citrixonlinecdn.com/web-library-2/scripts/jquery/jquery-all.js"),a=!1);window.ChannelTracker||(e("//"+(f?"stage.":"")+"marketing.citrixonline.com/marketing/api/2009/api.js"),a=!1);a&&b.each(d,function(a,b){window.setTimeout(function(){b.call(window,ChannelTracker)},10)})};window.getChannelTracker=function(b){d.push(b);resolve()}})();
    var trkDomain, tracker1, tracker2, tracker3, tracker4;
    dotrack = function() {
        trkDomain = ["joingotomeeting.com","joinwebinar.com","jointraining.com","meetingisbelieving.com","secure.citrixonline.com","gotomeeting.at","gotomeeting.be","gotomeeting.ca","gotomeeting.ch","gotomeeting.com","gotomeeting.co.kr","gotomeeting.co.nz","gotomeeting.co.uk","gotomeeting.com","gotomeeting.com.au","gotomeeting.com.es","gotomeeting.com.hk","gotomeeting.com.mx","gotomeeting.com.my","gotomeeting.com.ph","gotomeeting.com.sg","gotomeeting.com.tw","gotomeeting.de","gotomeeting.dk","gotomeeting.eu","gotomeeting.es","gotomeeting.fi","gotomeeting.fr","gotomeeting.gr","gotomeeting.hu","gotomeeting.ie","gotomeeting.in","gotomeeting.is","gotomeeting.it","gotomeeting.jp","gotomeeting.lt","gotomeeting.lu","gotomeeting.ms","gotomeeting.mx","gotomeeting.ph","gotomeeting.pt","gotomeeting.ro","gotomeeting.ru","gotomeeting.se","gotomeeting.nl"];
        tracker1 = new ChannelTracker('GoToMeeting');
        tracker1.appendTrackingHosts = trkDomain;
        tracker1.trackChannel();
        tracker2 = new ChannelTracker('GoToWebinar');
        tracker2.appendTrackingHosts = trkDomain;
        tracker2.trackChannel();
        tracker3 = new ChannelTracker('GoToTraining');
        tracker3.appendTrackingHosts = trkDomain;
        tracker3.trackChannel();
    };
    if (typeof dotrack == 'function' && (typeof dnt !== 'undefined' && typeof dnt.dntTrue === 'function') ? !dnt.dntTrue() : true) {
        getChannelTracker(dotrack);
    }
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') {
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString();
        }
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else {
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
jQuery.url = function()
{
    var segments = {};
    var parsed = {};
    var options = {
        url : window.location,
        strictMode: false,
        key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
        q: {
            name: "queryKey",
            parser: /(?:^|&|;)([^&=;]*)=?([^&;]*)/g
        },
        parser: {
            strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
            loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
        }
    };
    var parseUri = function()
    {
        str = decodeURI( options.url );
        var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
        var uri = {};
        var i = 14;
        while ( i-- ) {
            uri[ options.key[i] ] = m[i] || "";
        }
        uri[ options.q.name ] = {};
        uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
            if ($1) {
                uri[options.q.name][$1] = $2;
            }
        });
        return uri;
    };
    var key = function( key )
    {
        if ( jQuery.isEmptyObject(parsed) )
        {
            setUp();
        }
        if ( key == "base" )
        {
            if ( parsed.port !== null && parsed.port !== "" )
            {
                return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";
            }
            else
            {
                return parsed.protocol+"://"+parsed.host+"/";
            }
        }
        return ( parsed[key] === "" ) ? null : parsed[key];
    };
    var param = function( item )
    {
        if ( jQuery.isEmptyObject(parsed) )
        {
            setUp();
        }
        if ( item === undefined )
        {
            return parsed.queryKey;
        }
        else
        {
            return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
        }
    };
    var setUp = function()
    {
        parsed = parseUri();
        getSegments();
    };
    var getSegments = function()
    {
        var p = parsed.path;
        segments = [];
        segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
    };
    return {
        setMode : function( mode )
        {
            options.strictMode = mode == "strict" ? true : false;
            return this;
        },
        setUrl : function( newUri )
        {
            options.url = newUri === undefined ? window.location : newUri;
            setUp();
            return this;
        },
        segment : function( pos )
        {
            if ( jQuery.isEmptyObject(parsed) )
            {
                setUp();
            }
            if ( pos === undefined )
            {
                return segments.length;
            }
            return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
        },
        attr : key,
        param : param
    };
}();
(function($) {
    $.toJSON = function(o)
    {
        if (typeof(JSON) == 'object' && JSON.stringify)
            return JSON.stringify(o);
        var type = typeof(o);
        if (o === null)
            return "null";
        if (type == "undefined")
            return undefined;
        if (type == "number" || type == "boolean")
            return o + "";
        if (type == "string")
            return $.quoteString(o);
        if (type == 'object')
        {
            if (typeof o.toJSON == "function")
                return $.toJSON( o.toJSON() );
            if (o.constructor === Date)
            {
                var month = o.getUTCMonth() + 1;
                if (month < 10) month = '0' + month;
                var day = o.getUTCDate();
                if (day < 10) day = '0' + day;
                var year = o.getUTCFullYear();
                var hours = o.getUTCHours();
                if (hours < 10) hours = '0' + hours;
                var minutes = o.getUTCMinutes();
                if (minutes < 10) minutes = '0' + minutes;
                var seconds = o.getUTCSeconds();
                if (seconds < 10) seconds = '0' + seconds;
                var milli = o.getUTCMilliseconds();
                if (milli < 100) milli = '0' + milli;
                if (milli < 10) milli = '0' + milli;
                return '"' + year + '-' + month + '-' + day + 'T' +
                    hours + ':' + minutes + ':' + seconds +
                    '.' + milli + 'Z"';
            }
            if (o.constructor === Array)
            {
                var ret = [];
                for (var i = 0; i < o.length; i++)
                    ret.push( $.toJSON(o[i]) || "null" );
                return "[" + ret.join(",") + "]";
            }
            var pairs = [];
            for (var k in o) {
                var name;
                var type = typeof k;
                if (type == "number")
                    name = '"' + k + '"';
                else if (type == "string")
                    name = $.quoteString(k);
                else
                    continue;
                if (typeof o[k] == "function")
                    continue;
                var val = $.toJSON(o[k]);
                pairs.push(name + ":" + val);
            }
            return "{" + pairs.join(", ") + "}";
        }
    };
    $.evalJSON = function(src)
    {
        if (typeof(JSON) == 'object' && JSON.parse)
            return JSON.parse(src);
        return eval("(" + src + ")");
    };
    $.secureEvalJSON = function(src)
    {
        if (typeof(JSON) == 'object' && JSON.parse)
            return JSON.parse(src);
        var filtered = src;
        filtered = filtered.replace(/\\["\\\/bfnrtu]/g, '@');
        filtered = filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']');
        filtered = filtered.replace(/(?:^|:|,)(?:\s*\[)+/g, '');
        if (/^[\],:{}\s]*$/.test(filtered))
            return eval("(" + src + ")");
        else
            throw new SyntaxError("Error parsing JSON, source is not valid.");
    };
    $.quoteString = function(string)
    {
        if (string.match(_escapeable))
        {
            return '"' + string.replace(_escapeable, function (a)
            {
                var c = _meta[a];
                if (typeof c === 'string') return c;
                c = a.charCodeAt();
                return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);
            }) + '"';
        }
        return '"' + string + '"';
    };
    var _escapeable = /["\\\x00-\x1f\x7f-\x9f]/g;
    var _meta = {
        '\b': '\\b',
        '\t': '\\t',
        '\n': '\\n',
        '\f': '\\f',
        '\r': '\\r',
        '"' : '\\"',
        '\\': '\\\\'
    };
})(jQuery);
var knowChannelParams = ["c_name","c_leg"];
function ChannelProcessor(channelInfo) {
     this.channelInfo = channelInfo;
}
ChannelProcessor.prototype.getCname = function() {
    var urlVal = getURLParam("c_name");
    if(urlVal == null || urlVal.length == 0){
        var cnameMatch = this.channelInfo.match(/(\/tgt\/[^\/]*\/[^\/]*)|(\/tgw\/[^\/]*\/[^\/]*)|(\/tr\/[^\/]*\/[^\/]*)|(\/t\/[^\/]*\/[^\/]*)/);
        if (cnameMatch != null) {
            var cnameArray = cnameMatch[0].split("/");
            if(cnameArray[2] == "ISR" || cnameArray[2] == "isr" || cnameArray[2] == "CRM" || cnameArray[2] == "crm") {
                var c_name = "c_name="+ cnameArray[2] +"/"+cnameArray[3]+"&";
                return c_name;
            }
            else {
                var c_name = "c_name="+ cnameArray[2]+"&";
                return c_name;
            }
        }
        return "";
      }else
      return "c_name="+urlVal+"&";
}
ChannelProcessor.prototype.getCleg = function() {
    var c_leg = "c_leg="+ this.channelInfo;
    return c_leg;
}
function getHref() {
	return window.location.href;
}
function getLocation(){
	return window.location;
}
function getHostName(){
	return window.location.hostname;
}
function getURLParam(name) {
        var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(getHref());
        if(results != null)
            return results[1] || "";
        else
            return null;
}
function parseAdditionalQueryParams(trackParams){
    var channelTracker = new ChannelTracker();
    var queryParams = getHref().split("?")[1];
    if(queryParams != null){
        var qsa1 = channelTracker.queryStringToArray(queryParams);
        jQuery.each(qsa1 , function(key, val) {
        if (key.indexOf("c_") == 0 && (jQuery.inArray(key , knowChannelParams)) == -1 ) {
           var v = "c_"+ key.substring(2) + '=' + val;
           trackParams += trackParams == '' ? v : '&' + v;
        }
        });
        return trackParams;
    }else
        return trackParams;
}
function trackLegacyChannels(tracker,channelParam) {
	   if(tracker.dntCheck()) return;
       if(typeof tracker=='undefined')
         return;
        var url = '' + getLocation();
        if (url.match(/@/)) {
            jQuery.url.setUrl(url.replace(/@/g, "%40"));
        }
        if(typeof channelParam=='undefined' || jQuery.trim(channelParam).length==0||channelParam=='direct')
           return;
        var channel = new ChannelProcessor(channelParam);
        var cname = channel.getCname();
        var cleg = channel.getCleg();
        qs = cname+cleg;
        qs = parseAdditionalQueryParams(qs);
        trackLegacyVisit(tracker,qs);
        var cookieStr = tracker.createMktCookieStr(qs);
        tracker.writeMktCookie(cookieStr);
        tracker.writeTrackCookie("track","1");
        jQuery(document).ready(function() {
            tracker.appendJumpParamsToForms();
        });
}
function trackLegacyVisit(tracker,channelParam) {
	if(tracker.dntCheck()) return;
    if ("1" == tracker.readColCookie("track")) {
        return;
    }
    var url = '' + getLocation();
    if (url.match(/@/)) {
        jQuery.url.setUrl(url.replace(/@/g, "%40"));
    }
    var channelParams;
    channelParams = tracker.channelParams("", channelParam);
    var userId = jQuery.cookie('__col_visit');
    var firstSession = (typeof tracker.cookieValueToArray()['FIS_name'] == 'undefined');
    var port = "";
    var oldUrl = jQuery.url.attr("source");
    jQuery('script').each(function(i, item){
        if (item.src.indexOf("/marketing/api/2009/api.js") > 1 && jQuery.url.setUrl(item.src).attr("port") != null){
            port = ":" + jQuery.url.setUrl(item.src).attr("port");
        }
    });
    jQuery.url.setUrl(oldUrl);
    url = location.protocol + "//" + tracker.serverName + port + tracker.contextPath
                  + "/api/visit"
                  + "/userid/" + userId
                  + "/domain/" + getHostName()
                  + "/productName/" + tracker.productId
                  + "/channelparams/" + tracker.encode(channelParams)
                  + "/firstsession/" + firstSession
                  + ".json?_method=POST&callback=?";
    var trackerThis = tracker;
    jQuery.getJSON(url,
        function(data) {
            tracker.userId = data.string;
            var opts = { path: '/', expires: 365, domain: trackerThis.subdomain};
            jQuery.cookie('__col_visit', tracker.userId, opts);
        });
};
ChannelProcessor.prototype.serverName = "marketing.citrixonline.com";
ChannelProcessor.prototype.contextPath = "";
        jQuery(function() {
            if (jQuery.browser.msie && jQuery.browser.version == 10) {
                jQuery("head").append("<link rel='stylesheet' href='https://l1.osdimg.com/online/design/css/IE10.css' type='text/css'/>");
            }
        });
window._g=window._g||{};
window._g.$=$;
_g.$.ajaxSettings.traditional=true;
window._g=window._g||{};
_g.shared={};
if(window.console===undefined){window.console={log:function(A){}}
}var CQURLInfo=CQURLInfo||{contextPath:null,requestPath:"",selectorString:null,selectors:[],extension:"html",suffix:null,systemId:"",runModes:""};
_g.shared.HTTP=new function(){var createResponse=function(){var response=new Object();
response.headers=new Object();
response.body=new Object();
return response
};
var getResponseFromXhr=function(request){if(!request){return null
}var response=createResponse();
response.body=request.responseText;
response.headers[_g.HTTP.HEADER_STATUS]=request.status;
response.responseText=request.responseText;
response.status=request.status;
return response
};
var contextPath=null;
var SCRIPT_URL_REGEXP=/\/etc\/clientlibs\/.*\/shared.*\.js$/;
var ENCODE_PATH_REGEXP=/[^1\w-\.!~\*'\(\)\/%;:@&=\$,]/;
var LOGIN_TRIGGERED=false;
return{EXTENSION_HTML:".html",EXTENSION_JSON:".json",EXTENSION_RES:".res",HEADER_STATUS:"Status",HEADER_MESSAGE:"Message",HEADER_LOCATION:"Location",HEADER_PATH:"Path",PARAM_NO_CACHE:"cq_ck",get:function(url,callback,scope,suppressForbiddenCheck){url=_g.HTTP.getXhrHookedURL(_g.HTTP.externalize(url,true));
if(callback!=undefined){return _g.$.ajax({type:"GET",url:url,complete:function(request,textStatus){var response=getResponseFromXhr(request);
if(!suppressForbiddenCheck){_g.HTTP.handleForbidden(response)
}callback.call(scope||this,this,textStatus=="success",response)
}})
}else{try{var request=_g.$.ajax({type:"GET",url:url,async:false});
var response=getResponseFromXhr(request);
if(!suppressForbiddenCheck){_g.HTTP.handleForbidden(response)
}return response
}catch(e){return null
}}},post:function(url,callback,params,scope,suppressErrorMsg,suppressForbiddenCheck){url=_g.HTTP.externalize(url,true);
var hook=_g.HTTP.getXhrHook(url,"POST",params);
if(hook){url=hook.url;
params=hook.params
}if(callback!=undefined){return _g.$.ajax({type:"POST",url:url,data:params,complete:function(request,textStatus){var response=_g.HTTP.buildPostResponseFromHTML(request.responseText);
if(!suppressForbiddenCheck){_g.HTTP.handleForbidden(request)
}callback.call(scope||this,this,textStatus=="success",response)
}})
}else{try{var request=_g.$.ajax({type:"POST",url:url,data:params,async:false});
var response=_g.HTTP.buildPostResponseFromHTML(request.responseText);
if(!suppressForbiddenCheck){_g.HTTP.handleForbidden(request)
}return response
}catch(e){return null
}}},getParameter:function(url,name){var params=_g.HTTP.getParameters(url,name);
return params!=null?params[0]:null
},getParameters:function(url,name){var values=[];
if(!name){return null
}name=encodeURIComponent(name);
if(url.indexOf("?")==-1){return null
}var query=url.substring(url.indexOf("?")+1);
if(query.indexOf(name)==-1){return null
}var queryPts=query.split("&");
for(var i=0;
i<queryPts.length;
i++){var paramPts=queryPts[i].split("=");
if(paramPts[0]==name){values.push(paramPts.length>1?decodeURIComponent(paramPts[1]):"")
}}return values.length>0?values:null
},addParameter:function(url,name,value){if(value&&value instanceof Array){for(var i=0;
i<value.length;
i++){url=_g.HTTP.addParameter(url,name,value[i])
}return url
}var separator=url.indexOf("?")==-1?"?":"&";
var hashIdx=url.indexOf("#");
if(hashIdx<0){return url+separator+encodeURIComponent(name)+"="+encodeURIComponent(value)
}else{var hash=url.substring(hashIdx);
url=url.substring(0,hashIdx);
return url+separator+encodeURIComponent(name)+"="+encodeURIComponent(value)+hash
}},setParameter:function(url,name,value){url=_g.HTTP.removeParameter(url,name);
return _g.HTTP.addParameter(url,name,value)
},removeParameter:function(url,name){var pattern0="?"+encodeURIComponent(name)+"=";
var pattern1="&"+encodeURIComponent(name)+"=";
var pattern;
if(url.indexOf(pattern0)!=-1){pattern=pattern0
}else{if(url.indexOf(pattern1)!=-1){pattern=pattern1
}else{return url
}}var indexCutStart=url.indexOf(pattern);
var begin=url.substring(0,indexCutStart);
var indexCutEnd=url.indexOf("&",indexCutStart+1);
var end="";
if(indexCutEnd!=-1){end=url.substring(indexCutEnd);
if(end.indexOf("&")==0){end=end.replace("&","?")
}}return begin+end
},removeParameters:function(url){if(url.indexOf("?")!=-1){return url.substring(0,url.indexOf("?"))
}return url
},addSelector:function(url,selector,index){if(!index){index=0
}var post="";
var pIndex=url.indexOf("?");
if(pIndex==-1){pIndex=url.indexOf("#")
}if(pIndex!=-1){post=url.substring(pIndex);
url=url.substring(0,pIndex)
}var sIndex=url.lastIndexOf("/");
var main=url.substring(sIndex);
if(main.indexOf("."+selector+".")==-1){var path=url.substring(0,sIndex);
var obj=main.split(".");
var newMain="";
var delim="";
if(index>obj.length-2||index==-1){index=obj.length-2
}for(var i=0;
i<obj.length;
i++){newMain+=delim+obj[i];
delim=".";
if(index==i){newMain+=delim+selector
}}return path+newMain+post
}else{return url
}},setSelector:function(url,selector,index){var post="";
var pIndex=url.indexOf("?");
if(pIndex==-1){pIndex=url.indexOf("#")
}if(pIndex!=-1){post=url.substring(pIndex);
url=url.substring(0,pIndex)
}var selectors=_g.HTTP.getSelectors(url);
var ext=url.substring(url.lastIndexOf("."));
url=url.substring(0,url.lastIndexOf("."));
var fragment=(selectors.length>0)?url.replace("."+selectors.join("."),""):url;
if(selectors.length>0){for(var i=0;
i<selectors.length;
i++){if(index==i){fragment+="."+selector
}else{fragment+="."+selectors[i]
}}}else{fragment+="."+selector
}return fragment+ext+post
},addSelectors:function(url,selectors){var res=url;
if(url&&selectors&&selectors.length){for(var i=0;
i<selectors.length;
i++){res=_g.HTTP.addSelector(res,selectors[i],i)
}}return res
},getAnchor:function(url){if(url.indexOf("#")!=-1){return url.substring(url.indexOf("#")+1)
}return""
},setAnchor:function(url,anchor){return _g.HTTP.removeAnchor(url)+"#"+anchor
},removeAnchor:function(url){if(url.indexOf("#")!=-1){return url.substring(0,url.indexOf("#"))
}return url
},noCaching:function(url){return _g.HTTP.setParameter(url,_g.HTTP.PARAM_NO_CACHE,new Date().valueOf())
},buildPostResponseFromNode:function(node,response){if(!node){return null
}if(response==undefined){response=createResponse()
}for(var i=0;
i<node.childNodes.length;
i++){var child=node.childNodes[i];
if(child.tagName){if(child.id){if(child.href){response.headers[child.id]=child.href
}else{response.headers[child.id]=child.innerHTML
}}response=_g.HTTP.buildPostResponseFromNode(child,response)
}}return response
},buildPostResponseFromHTML:function(html){var response=createResponse();
try{if(html.responseText!=undefined){html=html.responseText
}else{if(typeof html!="string"){html=html.toString()
}}var div=document.createElement("div");
div.innerHTML=html;
response=_g.HTTP.buildPostResponseFromNode(div,response);
div=null
}catch(e){}return response
},getCookie:function(name){var cname=encodeURIComponent(name)+"=";
var dc=document.cookie;
if(dc.length>0){var begin=dc.indexOf(cname);
if(begin!=-1){begin+=cname.length;
var end=dc.indexOf(";",begin);
if(end==-1){end=dc.length
}return decodeURIComponent(dc.substring(begin,end))
}}return null
},setCookie:function(name,value,path,days,domain,secure){if(typeof (days)!="number"){days=7
}var date;
if(days>0){date=new Date();
date.setTime(date.getTime()+(days*24*60*60*1000))
}else{date=new Date(0)
}document.cookie=encodeURIComponent(name)+"="+encodeURIComponent(value)+"; "+(days!=0?"expires="+date.toGMTString()+"; ":"")+(domain?"domain="+domain+"; ":"")+(path?"path="+path:"")+(secure?"; secure":"");
return value
},clearCookie:function(name,path,domain,secure){_g.HTTP.setCookie(name,"null",path||"",-1,domain||"",secure||"")
},getSchemeAndAuthority:function(url){try{if(url.indexOf("://")==-1){return""
}var end=url.indexOf("/",url.indexOf("://")+3);
if(end==-1){return url
}return url.substring(0,end)
}catch(e){return""
}},getContextPath:function(){return contextPath
},detectContextPath:function(){try{if(CQURLInfo){contextPath=CQURLInfo.contextPath||""
}else{var scripts=document.getElementsByTagName("script");
for(var i=0;
i<scripts.length;
i++){var path=scripts[i].src;
if(path.indexOf("?")>=0){path=path.substring(0,path.indexOf("?"))
}if(SCRIPT_URL_REGEXP.test(path)){path=path.replace(/.*\:[\/][\/]/,"");
path=path.substring(path.indexOf("/"));
path=path.replace(SCRIPT_URL_REGEXP,"");
contextPath=path;
break
}}}}catch(e){}},externalize:function(url,encode){if(encode){url=_g.HTTP.encodePathOfURI(url)
}try{if(url.indexOf("/")==0&&contextPath&&url.indexOf(contextPath+"/")!=0){url=contextPath+url
}}catch(e){}return url
},internalize:function(url,doc){if(!doc){doc=document
}var docHost=_g.HTTP.getSchemeAndAuthority(doc.location.href);
var urlHost=_g.HTTP.getSchemeAndAuthority(url);
if(docHost==urlHost){return url.substring(urlHost.length+contextPath.length)
}else{return url
}},getPath:function(url){if(!url){if(CQURLInfo.requestPath){return CQURLInfo.requestPath
}}url=url||window.location.href;
url=_g.HTTP.internalize(url);
url=_g.HTTP.removeParameters(url);
url=_g.HTTP.removeAnchor(url);
var i=url.indexOf(".",url.lastIndexOf("/"));
if(i!=-1){url=url.substring(0,url.indexOf(".",url.lastIndexOf("/")))
}return url
},getSuffix:function(){if(CQURLInfo.suffix){return CQURLInfo.suffix
}return null
},getSelectors:function(url){if(!url){if(CQURLInfo.selectors){return CQURLInfo.selectors
}}var selectors=[];
url=url||window.location.href;
url=_g.HTTP.removeParameters(url);
url=_g.HTTP.removeAnchor(url);
var fragment=url.substring(url.lastIndexOf("/"));
if(fragment){var split=fragment.split(".");
if(split.length>2){for(var i=0;
i<split.length;
i++){if(i>0&&i<split.length-1){selectors.push(split[i])
}}}}return selectors
},getExtension:function(url){if(!url){if(CQURLInfo.extension){return CQURLInfo.extension
}}url=_g.HTTP.removeParameters(url);
url=_g.HTTP.removeAnchor(url);
var pos=url.lastIndexOf(".");
if(pos<0){return""
}url=url.substring(pos+1);
pos=url.indexOf("/");
if(pos<0){return url
}return url.substring(0,pos)
},encodePathOfURI:function(url){var parts,delim;
if(url.indexOf("?")!=-1){parts=url.split("?");
delim="?"
}else{if(url.indexOf("#")!=-1){parts=url.split("#");
delim="#"
}else{parts=[url]
}}if(ENCODE_PATH_REGEXP.test(parts[0])){parts[0]=_g.HTTP.encodePath(parts[0])
}return parts.join(delim)
},encodePath:function(path){path=encodeURI(path).replace(/%5B/g,"[").replace(/%5D/g,"]");
path=path.replace(/\+/g,"%2B");
path=path.replace(/\?/g,"%3F");
path=path.replace(/;/g,"%3B");
path=path.replace(/#/g,"%23");
path=path.replace(/=/g,"%3D");
path=path.replace(/\$/g,"%24");
path=path.replace(/,/g,"%2C");
path=path.replace(/'/g,"%27");
path=path.replace(/"/g,"%22");
return path
},eval:function(response){if(typeof response!="object"){response=_g.HTTP.get(response)
}try{return eval("("+(response.body?response.body:response.responseText)+")")
}catch(e){}return null
},isOkStatus:function(status){try{return(new String(status).indexOf("2")==0)
}catch(e){return false
}},isOk:function(response){try{return _g.HTTP.isOkStatus(response.headers[_g.HTTP.HEADER_STATUS])
}catch(e){return false
}},handleForbidden:function(response,suppressLogin){try{if(response[_g.HTTP.HEADER_STATUS.toLowerCase()]==403){if(!suppressLogin&&!LOGIN_TRIGGERED){LOGIN_TRIGGERED=true;
alert(_g.I18n.get("Your request could not be completed because you have been signed out."));
var l=_g.Util.getTopWindow().document.location;
l.href=_g.HTTP.externalize(_g.Sling.LOGIN_URL)+"?resource="+l.pathname+encodeURIComponent(l.search)+l.hash
}return true
}return false
}catch(e){return false
}},getXhrHook:function(url,method,params){method=method||"GET";
if(typeof G_XHR_HOOK!="undefined"&&_g.$.isFunction(G_XHR_HOOK)){var p={url:url,method:method};
if(params){p.params=params
}return G_XHR_HOOK(p)
}return null
},getXhrHookedURL:function(url,method,params){var hook=_g.HTTP.getXhrHook(url,method,params);
if(hook){return hook.url
}return url
},reloadHook:function(url){if(typeof G_RELOAD_HOOK!="undefined"&&_g.$.isFunction(G_RELOAD_HOOK)){if(CQURLInfo.selectorString!=""){url=_g.HTTP.addSelector(url,CQURLInfo.selectorString)
}url=G_RELOAD_HOOK(url)||url
}return url
}}
};
_g.HTTP=_g.shared.HTTP;
_g.shared.Util=new function(){return{reload:function(win,url,preventHistory){if(!win){win=window
}if(!url){url=_g.HTTP.noCaching(win.location.href)
}url=_g.HTTP.reloadHook(url);
if(preventHistory){win.location.replace(url)
}else{win.location.href=url
}},load:function(url,preventHistory){_g.Util.reload(window,url,preventHistory)
},open:function(url,win,name,options){if(!win){win=window
}if(!url){return
}url=_g.HTTP.reloadHook(url);
if(!name){name=""
}if(!options){options=""
}return win.open(url,name,options)
},htmlEncode:function(value){return !value?value:String(value).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")
},htmlDecode:function(value){return !value?value:String(value).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&amp;/g,"&")
},ellipsis:function(value,length,word){if(value&&value.length>length){if(word){var vs=value.substr(0,length-2);
var index=Math.max(vs.lastIndexOf(" "),vs.lastIndexOf("."),vs.lastIndexOf("!"),vs.lastIndexOf("?"),vs.lastIndexOf(";"));
if(index==-1||index<(length-15)){return value.substr(0,length-3)+"..."
}else{return vs.substr(0,index)+"..."
}}else{return value.substr(0,length-3)+"..."
}}return value
},patchText:function(text,snippets){if(snippets){if(!_g.$.isArray(snippets)){text=text.replace("{0}",snippets)
}else{for(var i=0;
i<snippets.length;
i++){text=text.replace(("{"+i+"}"),snippets[i])
}}}return text
},eval:function(response){return _g.HTTP.eval(response)
},getTopWindow:function(){var win=window;
try{while(win.parent&&win!==win.parent&&win.parent.location.href){win=win.parent
}}catch(error){}return win
}}
};
_g.Util=_g.shared.Util;
_g.shared.Sling=function(){return{SELECTOR_INFINITY:".infinity",CHARSET:"_charset_",STATUS:":status",STATUS_BROWSER:"browser",OPERATION:":operation",OPERATION_DELETE:"delete",OPERATION_MOVE:"move",DELETE_SUFFIX:"@Delete",TYPEHINT_SUFFIX:"@TypeHint",COPY_SUFFIX:"@CopyFrom",MOVE_SUFFIX:"@MoveFrom",ORDER:":order",REPLACE:":replace",DESTINATION:":dest",SAVE_PARAM_PREFIX:":saveParamPrefix",IGNORE_PARAM:":ignore",REQUEST_LOGIN_PARAM:"sling:authRequestLogin",LOGIN_URL:"/system/sling/login.html",LOGOUT_URL:"/system/sling/logout.html",processBinaryData:function(A){if(A&&A[":jcr:data"]!=undefined){var B=new Object();
B.size=A[":jcr:data"];
B.type=A["jcr:mimeType"];
B.date=A["jcr:lastModified"];
A=B
}return A
},getContentPath:function(C,A,B){var D=A;
if(D.lastIndexOf(".")>D.lastIndexOf("/")){D=D.substr(0,D.indexOf(".",D.lastIndexOf("/")))
}if(C){if(C.indexOf("/")==0){D=C
}else{if(B){while(C.indexOf("../")==0){C=C.substring(3);
D=D.substring(0,D.lastIndexOf("/"))
}}C=C.replace("./","");
D=D+"/"+C
}}return D
}}
}();
_g.Sling=_g.shared.Sling;
_g.shared.XSS=new function(){return{getXSSPropertyName:function(A){if(!A){return""
}if(_g.XSS.KEY_REGEXP.test(A)){return A
}return A+=_g.XSS.KEY_SUFFIX
},getXSSRecordPropertyValue:function(E,C,A){var D="";
if(E&&C){var B=E.get(this.getXSSPropertyName(C));
if(B){D=B
}else{D=E.get(C)
}if(A&&!isNaN(A)){D=_g.Util.ellipsis(D,A,true)
}}return D
},getXSSTablePropertyValue:function(D,C,A){var E="";
if(D&&C){var B=D[this.getXSSPropertyName(C)];
if(B){E=B
}else{E=D[C]
}if(A&&!isNaN(A)){E=_g.Util.ellipsis(E,A,true)
}}return E
},getXSSValue:function(A){if(A){return _g.Util.htmlEncode(A)
}else{return""
}},updatePropertyName:function(A,B){if(!A||!B||!A[B]){return
}if(A.xssProtect&&!A.xssKeepPropName){A[B]=this.getXSSPropertyName(A[B])
}},xssPropertyRenderer:function(D,B,C,A){if(A&&A.dataIndex&&C&&C.data&&C.data[this.getXSSPropertyName(A.dataIndex)]){D=C.data[this.getXSSPropertyName(A.dataIndex)];
if(A.ellipsisLimit&&!isNaN(A.ellipsisLimit)){D=_g.Util.ellipsis(D,A.ellipsisLimit,true)
}return D
}else{if(D){return D
}else{return""
}}}}
};
_g.XSS=_g.shared.XSS;
_g.XSS.KEY_SUFFIX="_xss";
_g.XSS.KEY_REGEXP=new RegExp(_g.XSS.KEY_SUFFIX+"$");
_g.shared.I18n=function(){var dicts=new Object();
var initialized=false;
var urlPrefix="/libs/cq/i18n/dict.";
var urlSuffix=".json";
var currentLocale=null;
var languages=null;
return{LOCALE_DEFAULT:"en",init:function(config){if(!config){config=new Object()
}if(config.locale){_g.I18n.setLocale(config.locale)
}if(config.urlPrefix){_g.I18n.setUrlPrefix(config.urlPrefix)
}if(config.urlSuffix){_g.I18n.setUrlSuffix(config.urlSuffix)
}initialized=true
},getLocale:function(){return currentLocale?currentLocale:_g.I18n.LOCALE_DEFAULT
},setLocale:function(locale){currentLocale=locale
},setUrlPrefix:function(prefix){urlPrefix=prefix
},setUrlSuffix:function(suffix){urlSuffix=suffix
},getDictionary:function(locale){if(!locale){locale=_g.I18n.getLocale()
}if(!dicts[locale]){var url=urlPrefix+locale+urlSuffix;
try{var response=_g.HTTP.get(url);
if(_g.HTTP.isOk(response)){dicts[locale]=_g.Util.eval(response)
}}catch(e){}if(!dicts[locale]){dicts[locale]={}
}}return dicts[locale]
},getMessage:function(text,snippets,note){return text
},getVarMessage:function(text,note){return this.getVar(text,note)
},get:function(text,snippets,note){var dict,newText,lookupText;
lookupText=note?text+" (("+note+"))":text;
if(initialized){}if(dict){newText=dict[lookupText]
}if(!newText){newText=text
}return _g.Util.patchText(newText,snippets)
},getVar:function(text,note){if(!text){return null
}return this.get(text,null,note)
},getLanguages:function(){if(!languages){try{var json=_g.HTTP.eval("/libs/wcm/core/resources/languages.overlay.infinity.json");
_g.$.each(json,function(name,lang){lang.title=_g.I18n.getVar(lang.language);
if(lang.title&&lang.country&&lang.country!="*"){lang.title+=" ("+_g.I18n.getVar(lang.country)+")"
}});
languages=json
}catch(e){languages={}
}}return languages
},parseLocale:function(langCode){if(!langCode){return null
}var pos=langCode.indexOf("_");
if(pos<0){pos=langCode.indexOf("-")
}var language,country;
if(pos<0){language=langCode;
country=null
}else{language=langCode.substring(0,pos);
country=langCode.substring(pos+1)
}return{code:langCode,language:language,country:country}
}}
}();
_g.I18n=_g.shared.I18n;
_g.shared.String=new function(){return{startsWith:function(D,B){if(D==null||B==null){return D==null&&B==null
}if(B.length>D.length){return false
}var A=D.toString();
var C=B.toString();
return(A.indexOf(C)==0)
},endsWith:function(B,A){if(B==null||A==null){return B==null&&A==null
}if(A.length>B.length){return false
}B=B.toString();
A=A.toString();
return(B.lastIndexOf(A)==(B.length-A.length))
},contains:function(B,A){if(B==null||A==null){return false
}B=B.toString();
A=A.toString();
return(B.indexOf(A)>=0)
}}
};
_g.String=_g.shared.String;
_g.HTTP.detectContextPath();
_g.I18n.init();
window.CQ=window.CQ||{};
CQ.shared=_g.shared;
CQ.Sling=CQ.shared.Sling;
CQ.I18n=CQ.shared.I18n;
G_XHR_HOOK=typeof CQ_XHR_HOOK!="undefined"?CQ_XHR_HOOK:undefined;
G_XHR_RELOAD=typeof CQ_RELOAD_HOOK!="undefined"?CQ_RELOAD_HOOK:undefined;
G_CONTENT_PATH=typeof CQ_CONTENT_PATH!="undefined"?CQ_CONTENT_PATH:undefined;
CQ.shared.Form=function(){var E=function(){var I=new Object();
var J=document.getElementsByTagName("label");
for(var H=0;
H<J.length;
H++){var G=J[H].htmlFor;
if(G){I[G]=J[H]
}}return I
};
var F=function(H){var I="";
var G=function(K){if(K.nodeType==3){I+=K.nodeValue
}if(K.nodeName.toLowerCase()=="select"||K.nodeName.toLowerCase()=="input"||K.nodeName.toLowerCase()=="textarea"||K.nodeName.toLowerCase()=="button"){return
}for(var J=0;
K.childNodes&&J<K.childNodes.length;
J++){G(K.childNodes[J])
}};
G(H);
return I
};
var C=function(G){return G.replace(/-\d+$/,"")
};
var B=function(H,G){if(!G){G=E()
}if(G[H]){return F(G[H])
}return null
};
var A=function(I){var H;
var J=I.nodeName.toLowerCase();
var G=D(I,"type")?I.getAttribute("type"):undefined;
if(J=="input"){if(G=="radio"||G=="checkbox"){if(D(I,"checked")){H=I.getAttribute("value")
}}else{if(I.type=="text"){H=I.defaultValue
}else{H=I.value
}}}else{if(J=="textarea"){H=I.value
}else{if(J=="option"&&D(I,"selected")){H=I.getAttribute("value")
}}}return H
};
var D=function(H,G){if(H==null){return false
}return(H.getAttribute(G)!=null)
};
return{searchArray:function(H,G,J){for(var I=0;
I<H.length;
I++){if(H[I][G]&&H[I][G]==J){return H[I]
}}return null
},getLabelForField:function(G,I){if(!I){I=E()
}var J=G.getAttribute("id");
if(J&&I[J]){return F(I[J])
}var H=G.parentNode;
while(H){if(H.nodeName.toLowerCase()=="label"){return F(H)
}H=H.parentNode
}return G.getAttribute("name")
},getFields:function(){var J=E();
var G=[];
var H=function(N,O){var M=N.getAttribute("name");
var P=N.nodeName.toLowerCase();
var R;
if(P=="input"||P=="textarea"){var L=D(N,"type")?N.getAttribute("type").toLowerCase():"text";
if(L=="button"||L=="submit"||L=="reset"){return
}R=CQ.shared.Form.searchArray(G,"value",M);
if(!R){G.push({text:CQ.shared.Form.getLabelForField(N,J),value:M,name:M,enumeration:undefined,local:O,type:P,defaultValue:A(N),node:N});
R=G[G.length-1]
}if(L=="radio"||(R.local&&L=="checkbox")){if(!R.enumeration){var S=N.getAttribute("id");
if(S){var U=C(S);
var T=B(U,J);
R.text=(T?T:M)
}else{R.text=M
}R.enumeration=[]
}R.enumeration.push({text:CQ.shared.Form.getLabelForField(N,J),value:N.getAttribute("value"),defaultValue:A(N),node:N})
}}else{if(P=="select"){G.push({text:CQ.shared.Form.getLabelForField(N,J),value:M,name:M,enumeration:[],local:O,type:P,defaultValue:undefined,node:N});
R=G[G.length-1];
var K=N.getElementsByTagName("option");
for(var Q=0;
Q<K.length;
Q++){R.enumeration.push({text:K[Q].innerHTML,value:K[Q].getAttribute("value"),defaultValue:A(K[Q]),node:K[Q]})
}}}};
var I=function(M,L){if(M.nodeName.toLowerCase()=="div"&&$(M).hasClass("section")){L=true
}if(M.getAttribute&&M.getAttribute("name")){H(M,L)
}for(var K=0;
M.childNodes&&K<M.childNodes.length;
K++){var N=M.childNodes[K];
if(N.nodeType==1){I(N,L)
}}};
I(document,false);
return G
}}
}();
CQ.shared.User=function(infoData){return{data:null,language:null,userPropsPath:null,getUserPropsUrl:function(){if(!this.userPropsPath){this.userPropsPath=CQ.shared.User.PROXY_URI
}return this.userPropsPath
},init:function(infoData){if(infoData){this.data=infoData
}else{var url=this.getUserPropsUrl();
url=CQ.shared.HTTP.noCaching(url);
var response=CQ.shared.HTTP.get(url);
if(CQ.shared.HTTP.isOk(response)){this.data=CQ.shared.Util.eval(response)
}}return this.data
},getLanguage:function(){this.language=this.data&&this.data.preferences&&this.data.preferences["language"]?this.data.preferences["language"]:"en";
return this.language
}}
}();
CQ.shared.User.PROXY_URI=CQ.shared.HTTP.externalize("/libs/cq/security/userinfo"+CQ.shared.HTTP.EXTENSION_JSON);
if(!window.CQ_Analytics){window.CQ_Analytics={}
}CQ_Analytics.Operator=(function(){return function(){}
})();
CQ_Analytics.Operator.IS="is";
CQ_Analytics.Operator.EQUALS="equals";
CQ_Analytics.Operator.NOT_EQUAL="notequal";
CQ_Analytics.Operator.GREATER="greater";
CQ_Analytics.Operator.GREATER_OR_EQUAL="greaterorequal";
CQ_Analytics.Operator.OLDER="older";
CQ_Analytics.Operator.OLDER_OR_EQUAL="olderorequal";
CQ_Analytics.Operator.LESS="less";
CQ_Analytics.Operator.LESS_OR_EQUAL="lessorequal";
CQ_Analytics.Operator.YOUNGER="younger";
CQ_Analytics.Operator.YOUNGER_OR_EQUAL="youngerorequal";
CQ_Analytics.Operator.CONTAINS="contains";
CQ_Analytics.Operator.BEGINS_WITH="beginswith";
CQ_Analytics.OperatorActions=function(){var mapping={};
var addOperator=function(name,text,operation){mapping[name]=[text,operation]
};
addOperator(CQ_Analytics.Operator.EQUALS,CQ.I18n.getMessage("equals"),"==");
addOperator(CQ_Analytics.Operator.IS,CQ.I18n.getMessage("is"),"==");
addOperator(CQ_Analytics.Operator.NOT_EQUAL,CQ.I18n.getMessage("is not equal to"),"!=");
addOperator(CQ_Analytics.Operator.GREATER,CQ.I18n.getMessage("is greater than"),">");
addOperator(CQ_Analytics.Operator.GREATER_OR_EQUAL,CQ.I18n.getMessage("is equal to or greater than"),">=");
addOperator(CQ_Analytics.Operator.OLDER,CQ.I18n.getMessage("is older than"),">");
addOperator(CQ_Analytics.Operator.OLDER_OR_EQUAL,CQ.I18n.getMessage("is equal to or older than"),">=");
addOperator(CQ_Analytics.Operator.LESS,CQ.I18n.getMessage("is less than"),"<");
addOperator(CQ_Analytics.Operator.LESS_OR_EQUAL,CQ.I18n.getMessage("is equal to or less than"),"<=");
addOperator(CQ_Analytics.Operator.YOUNGER,CQ.I18n.getMessage("is younger than"),"<");
addOperator(CQ_Analytics.Operator.YOUNGER_OR_EQUAL,CQ.I18n.getMessage("is equal to or younger than"),"<=");
addOperator(CQ_Analytics.Operator.CONTAINS,CQ.I18n.getMessage("contains",null,"Ex: language contains french, Ex: gender contains female"),function(s1,s2){if(s1){if(s2){s1=""+s1;
s2=""+s2;
return s1.toLowerCase().indexOf(s2.toLowerCase())!=-1
}return true
}return false
});
addOperator(CQ_Analytics.Operator.BEGINS_WITH,"begins with",function(s1,s2){if(s1){if(s2){s1=""+s1;
s2=""+s2;
return s1.toLowerCase().indexOf(s2.toLowerCase())==0
}return true
}return false
});
var getByIndex=function(op,index){if(mapping[op]&&mapping[op][index]){return mapping[op][index]
}return""
};
var escapeQuote=function(str){if(str){str=str.replace(new RegExp("\\'","ig"),str)
}return str
};
return{getText:function(operator){return getByIndex(operator,0)
},getOperation:function(operator){return getByIndex(operator,1)
},operate:function(object,property,operator,value,valueFormat){try{if(object&&object[property]){var toEval="";
var op=this.getOperation(operator);
op=op?op:operator;
var objectValue=CQ.shared.XSS.getXSSTablePropertyValue(object,property);
if(typeof op=="function"){return op.call(this,objectValue,value,valueFormat)
}else{if(valueFormat){toEval=valueFormat+"("+objectValue+") "+op+" "+valueFormat+"("+value+")"
}else{var s1=escapeQuote(objectValue);
var s2=escapeQuote(value);
toEval="'"+s1+"' "+op+" '"+s2+"'"
}var b=eval(toEval);
return b
}}}catch(e){}return false
}}
}();
var RUZEE=window.RUZEE||{};
RUZEE.ShadedBorder={create:function(Q){var M=/msie/i.test(navigator.userAgent)&&!window.opera;
var a=M&&!window.XMLHttpRequest;
function S(n,b){for(k in b){if(/ie_/.test(k)){if(M){n.style[k.substr(3)]=b[k]
}}else{n.style[k]=b[k]
}}}function V(n){var b=document.createElement("div");
b.className="sb-gen";
S(b,n);
return b
}function T(b){b=b<0?0:b;
if(b>0.99999){return""
}return M?" filter:alpha(opacity="+(b*100)+");":" opacity:"+b+";"
}var I=Q.shadow||0;
var c=Q.corner||0;
var G=0;
var F=Q.border||0;
var H=Q.borderOpacity||1;
var X=I!=0;
var P=c>I?c:I;
var R=P;
var B=P;
var j=P;
if(F>0){G=c;
c=c-F
}var L=c!=0&&X?Math.round(P/3):0;
var K=L;
var O=Math.round(L/2);
var N=c>0?"sb-inner":"sb-shadow";
var U="sb-shadow";
var f="sb-border";
var J=Q.edges||"trlb";
if(!/t/i.test(J)){B=0
}if(!/b/i.test(J)){j=0
}if(!/l/i.test(J)){P=0
}if(!/r/i.test(J)){R=0
}var e={position:"absolute",left:"0",top:"0",width:P+"px",height:B+"px",ie_fontSize:"1px",overflow:"hidden",margin:"0",padding:"0"};
var A=V(e);
delete e.left;
e.right="0";
e.width=R+"px";
var l=V(e);
delete e.top;
e.bottom="0";
e.height=j+"px";
var d=V(e);
delete e.right;
e.left="0";
e.width=P+"px";
var g=V(e);
var h=V({position:"absolute",width:"100%",height:B+"px",ie_fontSize:"1px",top:"0",left:"0",overflow:"hidden",margin:"0",padding:"0"});
var Z=V({position:"relative",height:B+"px",ie_fontSize:"1px",margin:"0 "+R+"px 0 "+P+"px",overflow:"hidden",padding:"0"});
h.appendChild(Z);
var Y=V({position:"absolute",left:"0",bottom:"0",width:"100%",height:j+"px",ie_fontSize:"1px",overflow:"hidden",margin:"0",padding:"0"});
var m=V({position:"relative",height:j+"px",ie_fontSize:"1px",margin:"0 "+R+"px 0 "+P+"px",overflow:"hidden",padding:"0"});
Y.appendChild(m);
var E=V({position:"absolute",top:(-j)+"px",left:"0",width:"100%",height:"100%",overflow:"hidden",ie_fontSize:"1px",padding:"0",margin:"0"});
function W(p,AD,AH){var AA=AH?P:R;
var AK=AD?B:j;
var AE=AD?O:-O;
var u=[];
var q=[];
var b=[];
var AB=0;
var AI=1;
if(AH){AB=AA-1;
AI=-1
}for(var z=0;
z<AA;
++z){var AL=AK-1;
var n=-1;
if(AD){AL=0;
n=1
}var r=false;
for(var v=AK-1;
v>=0&&!r;
--v){var AF='<div style="position:absolute; top:'+AL+"px; left:"+AB+"px; width:1px; height:1px; overflow:hidden; margin:0; padding:0;";
var AJ=z-L;
var o=v-K-AE;
var AM=Math.sqrt(AJ*AJ+o*o);
var AC=false;
if(c>0){if(AJ<0&&o<G&&o>=c||o<0&&AJ<G&&AJ>=c){u.push(AF+T(H)+'" class="'+f+'"></div>')
}else{if(AM<G&&AM>=c-1&&AJ>=0&&o>=0){var AN=AF;
if(AM>=G-1){AN+=T((G-AM)*H);
AC=true
}else{AN+=T(H)
}u.push(AN+'" class="'+f+'"></div>')
}}var AN=AF+" z-index:2;"+(AD?"background-position:0 -"+(c-o-1)+"px;":"background-image:none;");
var AG=function(){if(!AD){AN=AN.replace(/top\:\d+px/,"top:0px")
}AN=AN.replace(/height\:1px/,"height:"+(v+1)+"px");
q.push(AN+'" class="'+N+'"></div>');
r=true
};
if(AJ<0&&o<c||o<0&&AJ<c){AG()
}else{if(AM<c&&AJ>=0&&o>=0){if(AM>=c-1){AN+=T(c-AM);
AC=true;
q.push(AN+'" class="'+N+'"></div>')
}else{AG()
}}else{AC=true
}}}else{AC=true
}if(I>0&&AC){AM=Math.sqrt(z*z+v*v);
if(AM<I){b.push(AF+" z-index:0; "+T(1-(AM/I))+'" class="'+U+'"></div>')
}}AL+=n
}AB+=AI
}p.innerHTML=b.concat(u.concat(q)).join("")
}function C(q){var p=[];
p.push('<div style="position:relative; top:'+(B+j)+"px; height:2048px;  margin:0 "+(R-c-L)+"px 0 "+(P-c-L)+"px;  padding:0; overflow:hidden; background-position:0 "+(B>0?-(c+K+O):"0")+'px;" class="'+N+'"></div>');
var n='<div style="position:absolute; width:1px; top:'+(B+j)+"px; height:2048px; padding:0; margin:0;";
if(I>0){for(var b=0;
b<P-c-L;
++b){p.push(n+" left:"+b+"px;"+T((b+1)/P)+'" class="'+U+'"></div>')
}for(var b=0;
b<R-c-L;
++b){p.push(n+" right:"+b+"px;"+T((b+1)/R)+'" class="'+U+'"></div>')
}}if(F>0){var o=" width:"+F+"px;"+T(H)+'" class="'+f+'"></div>';
p.push(n+" left:"+(P-G-L)+"px;"+o);
p.push(n+" right:"+(R-G-L)+"px;"+o)
}q.innerHTML=p.join("")
}function D(q,n){var r=[];
var p=n?B:j;
var b='<div style="height:1px; overflow:hidden; position:absolute; margin:0; padding:0; width:100%; left:0px; ';
var o=n?O:-O;
for(var u=0;
u<p-o-K-c;
++u){if(I>0){r.push(b+(n?"top:":"bottom:")+u+"px;"+T((u+1)*1/p)+'" class="'+U+'"></div>')
}}if(u>=F){r.push(b+(n?"top:":"bottom:")+(u-F)+"px;"+T(H)+" height:"+F+'px;" class="'+f+'"></div>')
}r.push(b+(n?"background-position-y:0; top:":"background-image:none; bottom:")+u+"px; height:"+(c+K+o)+'px;" class="'+N+'"></div>');
q.innerHTML=r.join("")
}W(A,true,true);
W(l,true,false);
W(g,false,true);
W(d,false,false);
C(E);
D(Z,true);
D(m,false);
return{render:function(n){if(typeof n=="string"){n=document.getElementById(n)
}if(n.length!=undefined){for(var q=0;
q<n.length;
++q){this.render(n[q])
}return
}n.className+=" sb";
S(n,{position:"relative",background:"transparent"});
var o=n.firstChild;
while(o){var p=o.nextSibling;
if(o.nodeType==1&&o.className=="sb-gen"){n.removeChild(o)
}o=p
}var u=n.firstChild;
var r=h.cloneNode(true);
var t=E.cloneNode(true);
var s=Y.cloneNode(true);
n.insertBefore(A.cloneNode(true),u);
n.insertBefore(l.cloneNode(true),u);
n.insertBefore(g.cloneNode(true),u);
n.insertBefore(d.cloneNode(true),u);
n.insertBefore(r,u);
n.insertBefore(t,u);
n.insertBefore(s,u);
if(a){n.onmouseover=function(){this.className+=" hover"
};
n.onmouseout=function(){this.className=this.className.replace(/ hover/,"")
};
window.setTimeout(function(){n.className+=" hover";
n.className=n.className.replace(/ hover/,"")
},100)
}if(M){function b(){r.style.width=s.style.width=t.style.width=n.offsetWidth+"px";
t.firstChild.style.height=n.offsetHeight+"px"
}n.onresize=b;
b()
}}}
}};
CQ_Analytics.Utils=new function(){return{registerDocumentEventHandler:function(C,B){var A=window.document[C];
if(typeof window.document[C]!="function"){window.document[C]=B
}else{window.document[C]=function(D){if(A){A(D)
}B(D)
}
}},eventWrapper:function(A){return function(D){var C,B;
if(document.all){C=window.event.keyCode;
B=window.event
}else{C=(typeof (D.which)!="undefined")?D.which:0;
B=D
}if(B){A(B,C)
}}
},loadElement:function(A,B){$("#"+B).load(A)
},loadTeaserElement:function(A,D){var E=$("#"+D).css("height");
var F=$("#"+D).height();
if(F>0){$("#"+D).css("height",F)
}var G=function(L){if(L&&L!=""){var K=$(L).css("display","none");
$("#"+D).append(K);
K.fadeIn(function(){if(E&&E!="0px"){$("#"+D).css("height",E)
}})
}else{if(E&&E!="0px"){$("#"+D).css("height",E)
}}};
var H=function(K,L){if(!CQ_Analytics.Utils.teasersCache){CQ_Analytics.Utils.teasersCache={}
}CQ_Analytics.Utils.teasersCache[K]=L
};
var B=function(){if(CQ_Analytics.Utils.teasersCache&&CQ_Analytics.Utils.teasersCache[A]){G(CQ_Analytics.Utils.teasersCache[A])
}else{CQ_Analytics.Utils.teasersLoading=CQ_Analytics.Utils.teasersLoading||{};
if(CQ_Analytics.Utils.teasersLoading[A]){window.setTimeout(function(){CQ_Analytics.Utils.loadTeaserElement(A,D)
},100)
}else{CQ_Analytics.Utils.teasersLoading[A]=true;
I()
}}};
var I=function(){CQ.shared.HTTP.get(A,function(N,M,K){if(M){var L=K.body;
if(L){L=L.replace(new RegExp("\\n","ig"),"");
L=L.replace(new RegExp("\\r","ig"),"");
H(A,L);
B();
delete CQ_Analytics.Utils.teasersLoading[A]
}}else{H(A,"")
}})
};
var C=$("#"+D).children().length;
if(C>0){var J=0;
$("#"+D).children().fadeOut(function(){var K=$(this);
window.setTimeout(function(){K.remove();
J++;
if(J>=C){B()
}},50)
})
}else{B()
}},clearElement:function(A){if(A){$("#"+A).html("")
}},indexOf:function(D,C){for(var B=0,A=D.length;
B<A;
B++){if(D[B]==C){return B
}}return -1
},load:function(A,C,B){return CQ.shared.HTTP.get(A,C,B)
},post:function(A,D,C,B){return CQ.shared.HTTP.post(A,D,C,B)
},getPagePath:function(){return CQ.shared.HTTP.getPath()
},getPath:function(A){return CQ.shared.HTTP.getPath(A)
},addParameter:function(B,A,C){return CQ.shared.HTTP.addParameter(B,A,C)
},removeParameters:function(A){return CQ.shared.HTTP.removeParameters(A)
},removeAnchor:function(A){return CQ.shared.HTTP.removeAnchor(A)
},getSchemeAndAuthority:function(A){return CQ.shared.HTTP.getSchemeAndAuthority(A)
},internalize:function(A,B){return CQ.shared.HTTP.internalize(B)
},externalize:function(A,B){return CQ.shared.HTTP.externalize(A,B)
},encodePathOfURI:function(A){return CQ.shared.HTTP.encodePathOfURI(A)
},encodePath:function(A){return CQ.shared.HTTP.encodePath(A)
},getContextPath:function(){return CQ.shared.HTTP.getContextPath()
},detectContextPath:function(){return CQ.shared.HTTP.detectContextPath()
},urlEncode:function(H){if(!H){return""
}if(typeof H=="string"){return H
}var C=[];
for(var F in H){var E=H[F],B=encodeURIComponent(F);
var G=typeof E;
if(G=="undefined"){C.push(B,"=&")
}else{if(G!="function"&&G!="object"){C.push(B,"=",encodeURIComponent(E),"&")
}else{if(typeof E=="array"){if(E.length){for(var D=0,A=E.length;
D<A;
D++){C.push(B,"=",encodeURIComponent(E[D]===undefined?"":E[D]),"&")
}}else{C.push(B,"=&")
}}}}}C.pop();
return C.join("")
},getUID:function(){var A=Math.floor(Math.random()*(Math.pow(2,42)-1));
return this.getTimestamp().toString(16)+A.toString(16)
},getTimestamp:function(){var A=new Date();
return A.getTime()
},insert:function(D,C,B){if(!D||isNaN(C)||!B){return D
}var A="";
var F=0;
var E=C;
while(E<D.length){A+=D.substring(F,E)+B;
F+=C;
E+=C
}if(F<D.length){A+=D.substring(F)
}return A
},addListener:function(){if(window.addEventListener){return function(D,B,C,A){D.addEventListener(B,C,(A))
}
}else{if(window.attachEvent){return function(D,B,C,A){D.attachEvent("on"+B,C)
}
}else{return function(){}
}}},removeListener:function(){if(window.removeEventListener){return function(D,B,C,A){D.removeEventListener(B,C,(A))
}
}else{if(window.detachEvent){return function(C,A,B){C.detachEvent("on"+A,B)
}
}else{return function(){}
}}}}
};
CQ_Analytics.ClickstreamcloudRenderingUtils=new function(){return{createLink:function(F,D,B,A){var C=document.createElement("a");
C.href=A;
C.onclick=D;
C.innerHTML=F;
if(B){for(var E in B){if(B.hasOwnProperty(E)){C[E]=B[E]
}}}return C
},createStaticLink:function(D,A,C){var B=document.createElement("a");
B.href=A;
B.innerHTML=D;
B.title=C;
B.alt=C;
return B
},createNameValue:function(B,D,A,E){var C=document.createElement("span");
C.className=A||"ccl-data";
C.innerHTML=B+" = "+D;
C.title=E;
C.alt=E;
return C
},createText:function(D,A,C){var B=document.createElement("span");
B.className=A||"ccl-data";
if(D&&D.indexOf&&((D.indexOf("/home")!=-1&&D.indexOf("/image")!=-1)||(D.indexOf("/")!=-1&&D.indexOf(".png")!=-1))){B.innerHTML='<img src="'+D+'.prof.thumbnail.png" border="0">'
}else{if(D&&D.indexOf&&D.indexOf("www.gravatar.com")!=-1){B.innerHTML='<img src="'+D+'">'
}else{B.innerHTML=D
}}B.title=C;
B.alt=C;
return B
},createEditablePropertySpan:function(B,D){var A="var editSpan = this.nextSibling; this.style.display = 'none'; editSpan.style.display = 'block';";
var E="var editSpan = this.parentNode; var readSpan = this.parentNode.previousSibling;var newValue = this.value;editSpan.style.display = 'none'; readSpan.innerHTML = '"+B+" = '+value; readSpan.style.display = 'block';";
var C=document.createElement("span");
C.innerHTML='<span class="ccl-data" onclick="'+A+'">'+B+" = "+D+"</span>";
C.innerHTML+='<span class="ccl-data" style="display: none;">'+B+' = <input class="ccl-input" type="text" value="'+D+'" onblur="'+E+'"></span>';
C.className="ccl-data";
return C
}}
};
CQ_Analytics.ClientContextUtils=new function(){return{renderStoreProperty:function(F,C,B,D,E,A){if(CQ_Analytics&&CQ_Analytics.CCM){CQ_Analytics.CCM.onReady(function(){var G=function(){var H=CQ_Analytics.StoreRegistry.getStore(C);
if(H){var I=function(){var L=H.getProperty(B)||A;
var K=$("#"+F);
if(K.attr("contenteditable")&&K.attr("contenteditable")!="inherit"){return
}if(typeof (L)=="string"&&((L.indexOf("/")==0&&(L.toLowerCase().indexOf(".png")!=-1||L.toLowerCase().indexOf(".jpg")!=-1||L.toLowerCase().indexOf(".gif")!=-1)||L.toLowerCase().indexOf("http")==0))){if(!L||L==""){K.children().remove();
K.html("No "+B)
}else{var J="";
if(K.parents(".cq-cc-thumbnail").length==0||L.toLowerCase().indexOf("http")==0||L.indexOf("/libs/wcm/mobile")==0){J=L.replace(new RegExp("&amp;","g"),"&")
}else{J="/etc/clientcontext/shared/thumbnail/content.png";
J=CQ.shared.HTTP.addParameter(J,"path",CQ_Analytics.Variables.replaceVariables(L))
}J=CQ_Analytics.Variables.replaceVariables(J);
if(K.find("div").css("background-image")!="url("+J+")"){if(H.fireEvent("beforepropertyrender",H,F)!==false){K.html("");
K.children().remove();
$("<div>").addClass("cq-cc-thumbnail-img").css("background-image","url("+_g.shared.HTTP.externalize(J)+")").appendTo(K);
H.fireEvent("propertyrender",H,F)
}}}}else{L=CQ_Analytics.Variables.replaceVariables(L);
L=(!L||L=="")?"No "+B:L=D+L+E;
if(K.html()!=L){if(H.fireEvent("beforepropertyrender",H,F)!==false){K.html(L);
H.fireEvent("propertyrender",H,F)
}}}};
if(H.fireEvent("beforeinitialpropertyrender",H,F)!==false){I();
if(H.addListener){H.addListener("update",function(){I()
})
}H.fireEvent("initialpropertyrender",H,F)
}}};
CQ_Analytics.ClientContextUtils.onStoreRegistered(C,G)
})
}},renderStore:function(B,A){if(CQ_Analytics&&CQ_Analytics.CCM&&B&&A){CQ_Analytics.CCM.onReady(function(){var C=function(){var D=CQ_Analytics.StoreRegistry.getStore(A);
if(D){D.divId=B;
var E=function(){if(D.fireEvent("beforerender",D,D.divId)!==false){D.renderer(D,D.divId);
D.fireEvent("render",D,D.divId)
}};
if(D.fireEvent("beforeinitialrender",D,B)!==false){E();
if(D.addListener){D.addListener("update",function(){E()
})
}D.fireEvent("initialrender",D,B)
}}};
CQ_Analytics.ClientContextUtils.onStoreRegistered(A,C)
})
}},storesOptionsProvider:function(){var C=[];
var A=CQ_Analytics.StoreRegistry.getStores();
for(var B in A){C.push({value:B})
}return C
},storePropertiesOptionsProvider:function(C,E){var B=[];
var A=CQ_Analytics.StoreRegistry.getStore(C);
if(A){var G=A.getPropertyNames();
for(var D=0;
D<G.length;
D++){var F=G[D];
if(!CQ.shared.XSS.KEY_REGEXP.test(F)){var H={value:F};
if(E){H.text=F+" - "+A.getProperty(F)
}B.push(H)
}}}return B
},onStoreRegistered:function(B,C){if(C){var A=CQ_Analytics.StoreRegistry.getStore(B);
if(A){C.call(A,A)
}else{CQ_Analytics.CCM.addListener("storeregister",function(E,D){if(D.getName()==B){C.call(D,D)
}})
}}},onStoreInitialized:function(C,E,B){if(B===true){B=CQ_Analytics.ClientContextUtils.DEFAULT_INIT_DELAY
}var D=function(){var F=CQ_Analytics.StoreRegistry.getStore(C);
if(F.DELAYED_INIT_TIMEOUT){window.clearTimeout(F.DELAYED_INIT_TIMEOUT);
F.DELAYED_INIT_TIMEOUT=null
}if(B>0){F.DELAYED_INIT_TIMEOUT=window.setTimeout(function(){F.DELAYED_INIT_TIMEOUT=null;
E.call(F,"initialize",F)
},B)
}else{E.call(F,"initialize",F)
}};
var A=CQ_Analytics.StoreRegistry.getStore(C);
if(A){if(A.isInitialized()){D.call(A);
A.addListener("initialize",function(G,F){D.call(F)
})
}else{A.addListener("initialize",function(G,F){D.call(F)
})
}}else{CQ_Analytics.CCM.addListener("storeregister",function(G,F){if(F.getName()==C){CQ_Analytics.ClientContextUtils.onStoreInitialized(C,E,B)
}})
}},init:function(D,C){CQ_Analytics.ClientContextMgr.PATH=D;
CQ_Analytics.ClientContextMgr.loadConfig(null,true);
var A=CQ.shared.HTTP.externalize(D+"/content/jcr:content/stores.init.js");
A=CQ.shared.HTTP.addParameter(A,"path",C);
A=CQ.shared.HTTP.noCaching(A);
var B=CQ.shared.HTTP.get(A)
},initUI:function(B,A){CQ_Analytics.ClientContextUI.create(B,A)
}}
};
CQ_Analytics.ClientContextUtils.DEFAULT_INIT_DELAY=200;
CQ_Analytics.Variables=new function(){return{containsVariable:function(A){return CQ_Analytics.Variables.getVariables(A).length>0
},getVariables:function(B){if(!B||typeof (B)!="string"){return[]
}var A=B.match(new RegExp("\\$\\{([\\w/]*)\\}","ig"));
return A?A:[]
},replaceVariables:function(E){if(!E){return E
}var F="";
var D=E;
var G=CQ_Analytics.Variables.getVariables(E);
while(G.length>0&&F.indexOf(G.join())==-1){for(var C=0;
C<G.length;
C++){var B=G[C].substring(2,G[C].length-1);
var A=CQ_Analytics.ClientContext.get(B)||"";
D=CQ_Analytics.Variables.replace(D,B,A)
}F+=G.join();
G=CQ_Analytics.Variables.getVariables(D)
}return D
},replace:function(A,B,C){return A.replace(new RegExp("\\$\\{"+B+"\\}","ig"),C)
}}
};
CQ_Analytics.Cookie={set:function(C,D,E){var A="";
if(E){var B=new Date();
B.setTime(B.getTime()+(E*24*60*60*1000));
A="; expires="+B.toGMTString()
}document.cookie=C+"="+D+A+"; path=/"
},read:function(B){var D=B+"=";
var A=document.cookie.split(";");
for(var C=0;
C<A.length;
C++){var E=A[C];
while(E.charAt(0)==" "){E=E.substring(1,E.length)
}if(E.indexOf(D)==0){return E.substring(D.length,E.length)
}}return null
},erase:function(A){CQ_Analytics.Cookie.set(A,"",-1)
}};
CQ_Analytics.SessionPersistence=function(){return{COOKIE_NAME:"SessionPersistence-"+CQURLInfo.runModes.replace(",","-"),set:function(C,D){D=D||"";
var F=this.getMap();
if(!F){F=""
}var B=F.indexOf(C+":=");
if(B==-1){F+=C+":="+D+"|"
}else{var E=F.substring(0,B);
var A=F.substring(F.indexOf("|",B+2)+1);
F=E+C+":="+D+"|"+A
}this.setMap(F)
},get:function(B){var D=this.getMap();
var C="";
if(D){var A=D.indexOf(B+":=");
if(A!=-1){C=D.substring(A+(B+":=").length,D.indexOf("|",A+2))
}}C=(C=="null"?"":(C||""));
return C
},getMap:function(){var A=CQ_Analytics.Cookie.read(this.COOKIE_NAME);
if(A){return decodeURIComponent(A)
}return null
},setMap:function(A){CQ_Analytics.Cookie.set(this.COOKIE_NAME,encodeURIComponent(A),365)
},clearMap:function(){CQ_Analytics.Cookie.erase(this.COOKIE_NAME)
},remove:function(C){var E=this.getMap();
if(!E){E=""
}var B=E.indexOf(C+":=");
if(B!=-1){var D=E.substring(0,B);
var A=E.substring(E.indexOf("|",B+2)+1);
E=D+A
}this.setMap(E)
}}
};
CQ_Analytics.Observable=function(){this.fireEvent=function(D){if(D&&this.listeners){D=D.toLowerCase();
var B=Array.prototype.slice.call(arguments,0);
for(var C=0;
C<this.listeners.length;
C++){var A=this.listeners[C];
if(D==A.event){if(A.fireFn.apply(A.scope||this||window,B)===false){return false
}}}}return true
}
};
CQ_Analytics.Observable.prototype.addListener=function(C,A,B){this.listeners=this.listeners||new Array();
if(C&&A){this.listeners.push({event:C.toLowerCase(),fireFn:A,scope:B})
}};
CQ_Analytics.Observable.prototype.removeListener=function(C,A){this.listeners=this.listeners||new Array();
if(C&&A){for(var B=0;
B<this.listeners.length;
B++){if(this.listeners[B].event==C&&this.listeners[B].fireFn==A){this.listeners.splice(B,1)
}}}};
CQ_Analytics.Observable.prototype.listeners=null;
if(!CQ_Analytics.StoreRegistry){CQ_Analytics.StoreRegistry=new function(){var A={};
return{register:function(B){if(B.STORENAME){A[B.STORENAME]=B
}},getStores:function(){return A
},getStore:function(B){return A[B]
}}
}()
}CQ_Analytics.SessionStore=function(){};
CQ_Analytics.SessionStore.prototype=new CQ_Analytics.Observable();
CQ_Analytics.SessionStore.prototype.setProperty=function(A,C){if(this.data==null){this.init()
}this.data[A]=C;
var B=CQ.shared.XSS.getXSSPropertyName(A);
this.data[B]=CQ.shared.XSS.getXSSValue(C);
this.fireEvent("update",A)
};
CQ_Analytics.SessionStore.prototype.initialized=false;
CQ_Analytics.SessionStore.prototype.init=function(){this.initialized=true;
this.fireEvent("initialize",this)
};
CQ_Analytics.SessionStore.prototype.getLabel=function(A){return A
};
CQ_Analytics.SessionStore.prototype.getLink=function(A){return A
};
CQ_Analytics.SessionStore.prototype.removeProperty=function(A){if(this.data==null){this.init()
}if(this.data[A]){delete this.data[A]
}var B=CQ.shared.XSS.getXSSPropertyName(A);
if(this.data[B]){delete this.data[B]
}this.fireEvent("update",A)
};
CQ_Analytics.SessionStore.prototype.getPropertyNames=function(A){if(this.data==null){this.init()
}A=A?A:[];
var B=new Array();
for(var C in this.data){if(CQ_Analytics.Utils.indexOf(A,C)==-1){B.push(C)
}}return B
};
CQ_Analytics.SessionStore.prototype.getSessionStore=function(){return this
};
CQ_Analytics.SessionStore.prototype.clear=function(){this.data=null
};
CQ_Analytics.SessionStore.prototype.getData=function(B){if(this.data==null){this.init()
}if(B){var A={};
for(var C in this.data){if(CQ_Analytics.Utils.indexOf(B,C)==-1){A[C]=this.data[C]
}}return A
}else{return this.data
}};
CQ_Analytics.SessionStore.prototype.reset=function(){if(this.data!=null){this.data=null;
this.fireEvent("update")
}};
CQ_Analytics.SessionStore.prototype.getProperty=function(B,A){if(this.data==null){this.init()
}if(!A){var C=CQ.shared.XSS.getXSSPropertyName(B);
if(this.data[C]){return this.data[C]
}}return this.data[B]
};
CQ_Analytics.SessionStore.prototype.getName=function(){return this.STORENAME
};
CQ_Analytics.SessionStore.prototype.addInitProperty=function(A,B){if(!this.initProperty){this.initProperty={}
}this.initProperty[A]=B
};
CQ_Analytics.SessionStore.prototype.getInitProperty=function(A){return this.initProperty?this.initProperty[A]:null
};
CQ_Analytics.SessionStore.prototype.loadInitProperties=function(C,A){if(C){for(var B in C){this.addInitProperty(B,C[B]);
if(A&&this.data&&this.data[B]===undefined){this.setProperty(B,C[B])
}}}};
CQ_Analytics.SessionStore.prototype.isInitialized=function(){return this.initialized
};
CQ_Analytics.PersistedSessionStore=function(){};
CQ_Analytics.PersistedSessionStore.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.PersistedSessionStore.prototype.STOREKEY="key";
CQ_Analytics.PersistedSessionStore.prototype.setNonPersisted=function(A){if(!this.nonPersisted){this.nonPersisted={}
}this.nonPersisted[A]=true
};
CQ_Analytics.PersistedSessionStore.EXCLUDED_PROPERTIES_REGEX="^generated*";
CQ_Analytics.PersistedSessionStore.prototype.isPersisted=function(A){if(!this.nonPersisted){this.nonPersisted={}
}return this.nonPersisted[A]!==true&&!new RegExp(CQ_Analytics.PersistedSessionStore.EXCLUDED_PROPERTIES_REGEX,"ig").test(A)&&!$.isFunction(this.data[A])&&(typeof this.data[A])!="object"
};
CQ_Analytics.PersistedSessionStore.prototype.getStoreKey=function(){return this.STOREKEY
};
CQ_Analytics.PersistedSessionStore.prototype.persist=function(){if(this.fireEvent("beforepersist")!==false){var A=new CQ_Analytics.SessionPersistence();
A.set(this.getStoreKey(),this.toString());
this.fireEvent("persist")
}};
CQ_Analytics.PersistedSessionStore.prototype.setProperty=function(A,C){if(this.data==null){this.init()
}this.data[A]=C;
var B=CQ.shared.XSS.getXSSPropertyName(A);
this.data[B]=CQ.shared.XSS.getXSSValue(C);
if(this.isPersisted(A)){this.persist()
}this.fireEvent("update",A)
};
CQ_Analytics.PersistedSessionStore.prototype.toString=function(){var B=null;
if(this.data){var A=function(E){if(!E||typeof (E)!="string"){return E
}var D=E;
D=D.replace(new RegExp(",","g"),"&#44;");
D=D.replace(new RegExp("=","g"),"&#61;");
D=D.replace(new RegExp("\\|","g"),"&#124;");
return D
};
for(var C in this.data){if(this.isPersisted(C)&&this.data.hasOwnProperty(C)){B=(B===null?"":B+",");
B+=(C+"="+A(this.data[C]))
}}}return B
};
CQ_Analytics.PersistedSessionStore.prototype.parse=function(E){var D=function(H){if(!H||typeof (H)!="string"){return H
}var G=H;
G=G.replace(new RegExp("&#44;","g"),",");
G=G.replace(new RegExp("&#61;","g"),"=");
G=G.replace(new RegExp("&#124;","g"),"|");
return G
};
var C={};
var F=E.split(",");
for(var A in F){if(F.hasOwnProperty(A)){var B=F[A].split("=");
if(B.length==2){C[B[0]]=D(B[1])
}}}return C
};
CQ_Analytics.PersistedSessionStore.prototype.reset=function(A){if(this.data!=null){this.data={};
this.persist();
this.data=null;
if(!A){this.fireEvent("update")
}}};
CQ_Analytics.PersistedSessionStore.prototype.removeProperty=function(A){if(this.data==null){this.init()
}if(this.data[A]){delete this.data[A];
if(this.isPersisted(A)){this.persist()
}}this.fireEvent("update",A)
};
CQ_Analytics.PersistedSessionStore.prototype.clear=function(){var A=new CQ_Analytics.SessionPersistence();
A.remove(this.getStoreKey());
this.data=null
};
if(!CQ_Analytics.ClientContextMgr){CQ_Analytics.ClientContextMgr=function(){this.clientcontext=null;
this.clientcontextToServer=null;
this.stores={};
this.data=null;
this.config=null;
this.isConfigLoaded=false;
this.areStoresLoaded=false
};
CQ_Analytics.ClientContextMgr.prototype=new CQ_Analytics.PersistedSessionStore();
CQ_Analytics.ClientContextMgr.prototype.STOREKEY="CLIENTCONTEXT";
CQ_Analytics.ClientContextMgr.prototype.STORENAME="clientcontext";
CQ_Analytics.ClientContextMgr.prototype.INITIALIZATION_EVENT_TIMER=1000;
CQ_Analytics.ClientContextMgr.prototype.CONFIG_PATH=CQ_Analytics.Utils.externalize("/etc/clientcontext/legacy/config.json",true);
CQ_Analytics.ClientContextMgr.prototype.init=function(){this.clientcontext={};
this.clientcontextToServer={};
var A=new CQ_Analytics.SessionPersistence();
var B=A.get(this.getStoreKey());
if(B){this.data=this.parse(B)
}else{this.data={}
}this.initialized=true;
this.fireEvent("initialize",this)
};
CQ_Analytics.ClientContextMgr.prototype.getSessionId=function(){if(!this.data.sessionId){this.setSessionId(CQ_Analytics.Utils.getUID())
}return this.data.sessionId
};
CQ_Analytics.ClientContextMgr.prototype.setSessionId=function(A){if(A){this.setProperty("sessionId",A)
}};
CQ_Analytics.ClientContextMgr.prototype.getVisitorId=function(){return this.data.visitorId
};
CQ_Analytics.ClientContextMgr.prototype.setVisitorId=function(A){this.setProperty("visitorId",A)
};
CQ_Analytics.ClientContextMgr.prototype.getId=function(){var A=this.getVisitorId();
if(!A){return this.getSessionId()
}return A
};
CQ_Analytics.ClientContextMgr.prototype.isAnonymous=function(){var A=this.getVisitorId();
return(!A)
};
CQ_Analytics.ClientContextMgr.prototype.isMode=function(A){return CQ_Analytics.ClientContextMgr.ServerStorage.isMode(A)
};
CQ_Analytics.ClientContextMgr.prototype.get=function(A){if(this.clientcontext==null){this.init()
}if(A){return this.clientcontextToServer
}return this.clientcontext
};
CQ_Analytics.ClientContextMgr.prototype.register=function(C){if(this.clientcontext==null){this.init()
}var A=this;
this.clientcontext[C.getName()]=C.getData();
this.stores[C.getName()]=C;
CQ_Analytics.StoreRegistry.register(C);
var B=this.getStoreConfig(C.getName());
if(B.stats!==false&&B.stats!="false"){this.clientcontextToServer[C.getName()]=C.getData(B.excludedFromStats)
}if(this.initTimer){window.clearTimeout(this.initTimer);
this.initTimer=null
}this.initTimer=window.setTimeout(function(){A.fireEvent("storesinitialize");
A.areStoresInitialized=true
},this.INITIALIZATION_EVENT_TIMER);
C.addListener("update",function(){A.update(C)
});
CQ_Analytics.ClientContextMgr.ServerStorage.handleStoreRegistration(C);
this.addListener("clear",function(){C.clear()
});
this.fireEvent("storeregister",C);
this.fireEvent("storeupdate",C)
};
CQ_Analytics.ClientContextMgr.prototype.update=function(B){if(this.clientcontext==null){this.init()
}this.clientcontext[B.getName()]=B.getData();
var A=this.getStoreConfig(B.getName());
if(A.stats!==false&&A.stats!="false"){this.clientcontextToServer[B.getName()]=B.getData(A.excludedFromStats)
}this.fireEvent("storeupdate",B)
};
CQ_Analytics.ClientContextMgr.prototype.startPosting=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.startPosting()
};
CQ_Analytics.ClientContextMgr.prototype.stopPosting=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.stopPosting()
};
CQ_Analytics.ClientContextMgr.prototype.post=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.post()
};
CQ_Analytics.ClientContextMgr.prototype.getCCMToJCR=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.getCCMToJCR()
};
CQ_Analytics.ClientContextMgr.prototype.getName=function(){return this.STORENAME
};
CQ_Analytics.ClientContextMgr.prototype.clear=function(){this.clientcontext=null;
this.clientcontextToServer=null;
this.fireEvent("clear")
};
CQ_Analytics.ClientContextMgr.prototype.getRegisteredStore=function(A){return this.stores&&this.stores[A]?this.stores[A]:null
};
CQ_Analytics.ClientContextMgr.prototype.loadConfig=function(c,autoConfig){var setConfig=function(ccm,config){ccm.config=config;
ccm.isConfigLoaded=true;
ccm.fireEvent("configloaded");
ccm.fireEvent("storesloaded");
ccm.areStoresLoaded=true
};
if(c){setConfig(this,c)
}else{if(!autoConfig){var params={};
params.path=CQ_Analytics.Utils.getPagePath();
params.cq_ck=new Date().valueOf();
var url=this.CONFIG_PATH;
url+="?"+CQ_Analytics.Utils.urlEncode(params);
CQ_Analytics.Utils.load(url,function(data,status,response){var config={};
try{config=eval("config = "+response.responseText)
}catch(error){}setConfig(this,config)
},this)
}else{setConfig(this,{})
}}};
CQ_Analytics.ClientContextMgr.prototype.getConfig=function(){return this.config
};
CQ_Analytics.ClientContextMgr.prototype.getStoreConfig=function(A){if(this.config&&this.config.configs&&this.config.configs[A]&&this.config.configs[A]["store"]){return this.config.configs[A]["store"]
}return{}
};
CQ_Analytics.ClientContextMgr.prototype.getEditConfig=function(A){if(this.config&&this.config.configs&&this.config.configs[A]&&this.config.configs[A]["edit"]){return this.config.configs[A]["edit"]
}return{}
};
CQ_Analytics.ClientContextMgr.prototype.getUIConfig=function(A){if(this.config&&this.config.configs&&this.config.configs[A]&&this.config.configs[A]["ui"]){return this.config.configs[A]["ui"]
}return{}
};
CQ_Analytics.ClientContextMgr.prototype.getInitialData=function(A){if(this.config&&this.config.data&&this.config.data[A]){return this.config.data[A]
}return{}
};
CQ_Analytics.ClientContextMgr.prototype.getStores=function(){return this.stores
};
CQ_Analytics.ClientContextMgr.prototype.onReady=function(B,A){if(B){if(this.areStoresLoaded){B.call(A)
}else{this.addListener("storesloaded",B,A)
}}};
CQ_Analytics.ClientContextMgr=CQ_Analytics.CCM=new CQ_Analytics.ClientContextMgr();
CQ_Analytics.ClickstreamcloudMgr=CQ_Analytics.CCM;
CQ_Analytics.ContextCloudMgr=CQ_Analytics.CCM;
CQ_Analytics.ClientContextMgr.PATH=null;
CQ_Analytics.ClientContextMgr.getClientContextURL=function(A){return CQ_Analytics.ClientContextMgr.PATH+A
};
window.setTimeout(function(){CQ_Analytics.CCM.init()
},1);
CQ_Analytics.Utils.addListener(window,"unload",function(){try{for(var B in CQ_Analytics.ClientContextMgr){delete CQ_Analytics.ClientContextMgr[B]
}CQ_Analytics.ClientContextMgr=null
}catch(A){}CQ_Analytics.CCM=null
})
}if(CQ_Analytics.ClientContextMgr&&!CQ_Analytics.ClientContextMgr.ServerStorage){CQ_Analytics.ClientContextMgr.ServerStorage=function(){this.posting=false;
this.initialized=false
};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE_PAGELOAD=1;
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE_TIMER=2;
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE_DATAUPDATE=4;
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_TIMER=600;
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_PROCESS_TIMER=60;
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE=6;
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_PATH="/var/statistics/";
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.init=function(){if(this.isMode(CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_TIMER)){var A=this;
var B=function(){A.timer=window.setInterval(function(){try{var D=parseInt(A.data.lastPost);
var F=false;
if(isNaN(D)){F=true
}else{var E=new Date().getTime();
if(E>D+CQ_Analytics.ClientContextMgr.ServerStorage.POST_TIMER*1000){F=true
}}}catch(C){}if(F){A.post()
}},CQ_Analytics.ClientContextMgr.ServerStorage.POST_PROCESS_TIMER*1000)
};
B.call(this)
}this.initialized=true
};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.isMode=function(A){return(CQ_Analytics.CCM.POST_MODE&A)>0
};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.handleStoreRegistration=function(A){if(!this.initialized){this.init()
}if(this.isMode(CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_DATAUPDATE)){A.addListener("persist",function(){CQ_Analytics.ClientContextMgr.ServerStorage.post(A)
})
}};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.startPosting=function(){this.posting=true
};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.stopPosting=function(){this.posting=false
};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.post=function(D,F){if(this.posting||F){try{var G=this.getCCMToJCR(D);
var E=CQ_Analytics.Utils.getTimestamp();
G["./jcr:primaryType"]="nt:unstructured";
G["./sessionId"]=CQ_Analytics.CCM.getSessionId();
var C=this.POST_PATH+"clientcontext/";
if(CQ_Analytics.CCM.isAnonymous()){var A=CQ_Analytics.Utils.insert(CQ_Analytics.CCM.getId(),2,"/");
C+="anonymous/"+A+"/"+E
}else{C+="users/"+CQ_Analytics.CCM.getId()+"/"+E
}CQ_Analytics.Utils.post(C,null,G);
this.lastPost=E
}catch(B){}}};
CQ_Analytics.ClientContextMgr.ServerStorage.prototype.getCCMToJCR=function(G){var C=CQ_Analytics.CCM.get(true);
var E={};
for(var I in C){if(!G||I==G){var A=C[I],B=encodeURIComponent(I);
var F=typeof A;
if(F=="object"){for(var D in A){var H=A[D];
D=D.replace(":","/");
E["./"+I+"/./"+D]=H
}}else{E["./"+I]=A
}}}return E
};
CQ_Analytics.ClientContextMgr.ServerStorage=new CQ_Analytics.ClientContextMgr.ServerStorage();
CQ_Analytics.ClickstreamcloudMgr.POST_MODE_PAGELOAD=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_PAGELOAD;
CQ_Analytics.ClickstreamcloudMgr.POST_MODE_TIMER=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_TIMER;
CQ_Analytics.ClickstreamcloudMgr.POST_MODE_DATAUPDATE=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_DATAUPDATE;
CQ_Analytics.ClickstreamcloudMgr.POST_TIMER=CQ_Analytics.ClientContextMgr.ServerStorage.POST_PROCESS_TIMER;
CQ_Analytics.ClickstreamcloudMgr.POST_PROCESS_TIMER=CQ_Analytics.ClientContextMgr.ServerStorage.POST_PROCESS_TIMER;
CQ_Analytics.ClickstreamcloudMgr.POST_MODE=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE;
CQ_Analytics.ClickstreamcloudMgr.POST_PATH=CQ_Analytics.ClientContextMgr.ServerStorage.POST_PATH
}if(!CQ_Analytics.SegmentMgr){CQ_Analytics.SegmentMgr=function(){this.SEGMENTATION_ROOT="/etc/segmentation";
this.SEGMENT_SELECTOR=".segment.js";
this.SEGMENTATION_SCRIPT_LOADER="cq-segmentation-loader";
this.segments={};
this.boosts={};
var A=this;
this.fireUpdate=function(){A.fireEvent("update")
};
this.init()
};
CQ_Analytics.SegmentMgr.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.SegmentMgr.prototype.STORENAME="segments";
CQ_Analytics.SegmentMgr.prototype.register=function(A,C,B){this.segments[A]=C;
this.boosts[A]=!isNaN(B)?parseInt(B):0;
this.fireUpdate()
};
CQ_Analytics.SegmentMgr.prototype.resolveArray=function(E,G,B){G=G||CQ_Analytics.ClientContextMgr.get();
if(!(E instanceof Array)){return this.resolve(E,G)
}B=(B=="AND"?"AND":"OR");
var A=(B=="AND");
for(var D=0;
D<E.length;
D++){var F=E[D];
var C=this.resolve(F,G);
if(B=="AND"){if(C!==true){return C
}}else{if(C===true){return true
}}}return A
};
CQ_Analytics.SegmentMgr.prototype.resolve=function(segmentPath,clientcontext){clientcontext=clientcontext||CQ_Analytics.ClientContextMgr.get();
if(!segmentPath){return false
}if(segmentPath instanceof Array){return this.resolveArray(segmentPath,clientcontext)
}if(segmentPath.indexOf(this.SEGMENTATION_ROOT)!=0){return false
}if(segmentPath==this.SEGMENTATION_ROOT){return true
}if(!this.segments[segmentPath]){return true
}var parent=segmentPath.substring(0,segmentPath.lastIndexOf("/"));
if(parent.indexOf(this.SEGMENTATION_ROOT)==0){var pres=this.resolve(parent,clientcontext);
if(pres!==true){return pres
}}var rules="function(clientcontext, contextcloud, clickstreamcloud) { return true ";
rules+=" && ( "+this.segments[segmentPath]+" ) ";
rules+=";}";
var res=true;
try{var f=null;
eval("f = "+rules+"");
var e=(f==null||f(clientcontext,clientcontext,clientcontext));
res=res&&(e===true)
}catch(error){return"Unresolved - Error while evaluating segment "+segmentPath+" : "+error.message
}return res
};
CQ_Analytics.SegmentMgr.prototype.getResolved=function(C){C=C||CQ_Analytics.ClientContextMgr.get();
var A=new Array();
for(var B in this.segments){if(this.resolve(B,C)===true){A.push(B)
}}return A
};
CQ_Analytics.SegmentMgr.prototype.getMaxBoost=function(D,F){if(!(D instanceof Array)){return this.getBoost(D)
}var B=0;
for(var C=0;
C<D.length;
C++){var E=D[C];
if(this.resolve(E,F)===true){var A=this.boosts[E]||0;
if(A>B){B=A
}}}return B
};
CQ_Analytics.SegmentMgr.prototype.getBoost=function(A){if(!(A instanceof Array)){A=[A]
}return this.boosts[A]||0
};
CQ_Analytics.SegmentMgr.prototype.reload=function(path){var url=path;
if(!url){url=this.SEGMENTATION_ROOT
}if(url){if(url.indexOf(this.SEGMENT_SELECTOR)==-1){url+=this.SEGMENT_SELECTOR
}try{CQ_Analytics.Utils.load(url,function(config,status,response){if(response&&response.responseText){eval(response.responseText)
}},this);
var response=CQ.HTTP.get(scripts[i].src)
}catch(err){}}};
CQ_Analytics.SegmentMgr.prototype.getSessionStore=function(){return this
};
CQ_Analytics.SegmentMgr.prototype.getProperty=function(A){return A
};
CQ_Analytics.SegmentMgr.prototype.getLink=function(A){return A+".html"
};
CQ_Analytics.SegmentMgr.prototype.getLabel=function(C){if(C){var B=C;
var A=B.lastIndexOf("/");
if(A!=-1){B=B.substring(A+1,B.length)
}var D=this.resolve(C);
if(D===true){return B
}else{if(D!==true){return'<span class="invalid" title="'+D+'" alt="'+D+'">'+B+"</span>"
}}}return C
};
CQ_Analytics.SegmentMgr.prototype.getPropertyNames=function(){return this.getResolved()
};
CQ_Analytics.SegmentMgr=new CQ_Analytics.SegmentMgr();
CQ_Analytics.SegmentMgr.loadSegments=function(A){CQ_Analytics.SegmentMgr.areSegmentsLoaded=false;
CQ.shared.HTTP.get(CQ.shared.HTTP.externalize(A+".segment.js"));
CQ_Analytics.SegmentMgr.areSegmentsLoaded=true;
this.fireEvent("segmentsload")
};
CQ_Analytics.SegmentMgr.renderer=function(A,C){if(A&&A.STORENAME==CQ_Analytics.SegmentMgr.STORENAME){var E=A.getPropertyNames();
var F=$("<div>");
for(var D=0;
D<E.length;
D++){var B=E[D];
F.append($("<span>").attr("title",A.getProperty(B)).append($("<a>").attr("href",_g.shared.HTTP.externalize(A.getLink(B))).attr("title",A.getProperty(B)).html(A.getLabel(B))))
}$("#"+C).children().remove();
$("#"+C).append(F)
}};
CQ_Analytics.ClientContextMgr.addListener("storeupdate",CQ_Analytics.SegmentMgr.fireUpdate);
CQ_Analytics.Utils.addListener(window,"unload",function(){try{for(var B in CQ_Analytics.SegmentMgr){delete CQ_Analytics.SegmentMgr[B]
}}catch(A){}CQ_Analytics.SegmentMgr=null
})
}if(!CQ_Analytics.StrategyMgr){CQ_Analytics.StrategyMgr=function(){this.strategies={}
};
CQ_Analytics.StrategyMgr.prototype={};
CQ_Analytics.StrategyMgr.prototype.isRegistered=function(A){return !!this.strategies[A]
};
CQ_Analytics.StrategyMgr.prototype.register=function(B,A){if(typeof A=="function"){this.strategies[B]=A
}};
CQ_Analytics.StrategyMgr.prototype.choose=function(B,A){if(A.length==1){return A[0]
}if(this.strategies[B]){return this.strategies[B].call(this,A)
}};
CQ_Analytics.StrategyMgr=new CQ_Analytics.StrategyMgr()
}CQ_Analytics.StrategyMgr.register("clickstream-score",function(H){if(H.length==1){return H[0]
}var A=[];
if(CQ_Analytics.TagCloudMgr){var K=CQ_Analytics.TagCloudMgr.getTags();
K=K||{};
var J=-1;
for(var E=0;
E<H.length;
E++){var G=0;
var I=H[E].tags;
if(I){for(var D=0;
D<I.length;
D++){var F=I[D].tagID;
G+=parseInt(K[F])||0
}}if(G==J){A.push(H[E])
}else{if(G>J){A=[];
A.push(H[E]);
J=G
}}}}else{A=H
}if(A.length==1){return A[0]
}var B=null;
if(CQ_Analytics.PageDataMgr){B=CQ_Analytics.PageDataMgr.getProperty("random")
}if(!B){B=window.CQ_StrategyRandom
}if(!B){B=window.CQ_StrategyRandom=Math.random()
}if(parseFloat(B)>1){B=1/B
}if(parseFloat(B)==1){B=0
}var C=Math.floor(B*A.length);
return A[C]
});
CQ_Analytics.StrategyMgr.register("first",function(A){return A[0]
});
CQ_Analytics.StrategyMgr.register("random",function(C){var A=null;
if(CQ_Analytics.PageDataMgr){A=CQ_Analytics.PageDataMgr.getProperty("random")
}if(!A){A=window.CQ_StrategyRandom
}if(!A){A=window.CQ_StrategyRandom=Math.random()
}if(parseFloat(A)>1){A=1/A
}if(parseFloat(A)==1){A=0
}var B=Math.floor(A*C.length);
return C[B]
});
if(!CQ_Analytics.ClickstreamcloudUI){CQ_Analytics.ClickstreamcloudUI=function(){this.SHOW_BOX_COOKIE="show-clickstreamcloud";
this.BOX_ID="clickstreamcloud";
this.box=null;
this.top=null;
this.sections=null;
this.bottom=null;
this.nbSection=0;
this.isRendered=false
};
CQ_Analytics.ClickstreamcloudUI.prototype=new CQ_Analytics.Observable();
CQ_Analytics.ClickstreamcloudUI.prototype.createBox=function(C){var A=this;
this.box=document.createElement("div");
this.box.id=this.BOX_ID;
this.box.style.display="none";
var D=document.createElement("div");
this.box.appendChild(D);
this.top=document.createElement("div");
this.top.className="ccl-header ccl-header-close";
this.addListener("close",function(){A.onVisibilityChange()
});
this.top.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createStaticLink("","#ccl",""));
this.top.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createLink(CQ.I18n.getMessage("Close"),function(){A.box.style.display="none";
A.fireEvent("close")
},{className:"ccl-close"},"#ccl"));
if(this.hideLoadLink===false){this.top.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createLink(CQ.I18n.getMessage("Load"),function(){A.fireEvent("loadclick")
},{className:"ccl-load"},"#ccl"))
}if(this.hideEditLink===false){this.top.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createLink(CQ.I18n.getMessage("Edit"),function(){A.fireEvent("editclick")
},{className:"ccl-edit"},"#ccl"))
}D.appendChild(this.top);
this.sections=document.createElement("div");
D.appendChild(this.sections);
this.bottom=document.createElement("div");
this.bottom.className="ccl-spacer";
D.appendChild(this.bottom);
var B=RUZEE.ShadedBorder.create({corner:10,border:2,shadow:21});
B.render(D);
C.appendChild(this.box);
if(D.onresize){this.addListener("show",D.onresize,D)
}};
CQ_Analytics.ClickstreamcloudUI.prototype.init=function(B){B=B||{};
this.parentId=B.target;
var C=document.getElementById(this.parentId);
if(C){this.version=B.version||CQ_Analytics.ClickstreamcloudUI.VERSION_FULL;
this.hideEditLink=B.hideEditLink!==false;
this.hideLoadLink=B.hideLoadLink!==false;
this.disableKeyShortcut=B.disableKeyShortcut!==false;
if(CQ_Analytics.Cookie.read(this.SHOW_BOX_COOKIE)=="true"){this.show()
}if(!this.disableKeyShortcut){var A=this;
CQ_Analytics.Utils.registerDocumentEventHandler("onkeydown",CQ_Analytics.Utils.eventWrapper(function(D,E){if(D.ctrlKey&&D.altKey&&E=="C".charCodeAt(0)){A.toggle()
}}))
}}};
CQ_Analytics.ClickstreamcloudUI.prototype.onVisibilityChange=function(){CQ_Analytics.Cookie.set(this.SHOW_BOX_COOKIE,this.isVisible()?"true":"false",365)
};
CQ_Analytics.ClickstreamcloudUI.prototype.isVisible=function(){return(this.box!=null&&this.box.style.display!="none")
};
CQ_Analytics.ClickstreamcloudUI.prototype.toggle=function(){if(this.isVisible()){this.hide()
}else{this.show()
}};
CQ_Analytics.ClickstreamcloudUI.prototype.register=function(D,A,C){var B=function(){var F=new CQ_Analytics.ClickstreamcloudUI.Section(D,this.version,A||{},C);
var E=CQ_Analytics.CCM.getUIConfig(D.getName())||{};
this.addSection(F,E.rank||null);
D.addListener("update",F.reset,F)
};
if(this.isRendered){B.call(this)
}else{this.addListener("render",B,this)
}};
CQ_Analytics.ClickstreamcloudUI.prototype.addSection=function(C,A){if(A<this.nbSection&&this.nbSection>0){var B=this.nbSection;
var D=this.sections.lastChild;
while(B>A+1){B--;
D=D.previousSibling
}this.sections.insertBefore(C.get(),D)
}else{this.sections.appendChild(C.get())
}this.nbSection++
};
CQ_Analytics.ClickstreamcloudUI.prototype.removeSection=function(A){this.sections.removeChild(A);
this.nbSection--
};
CQ_Analytics.ClickstreamcloudUI.prototype.show=function(){if(!this.isRendered){var A=document.getElementById(this.parentId);
if(A){this.createBox(A);
this.isRendered=true;
this.fireEvent("render")
}}this.box.style.display="block";
this.onVisibilityChange();
this.fireEvent("show")
};
CQ_Analytics.ClickstreamcloudUI.prototype.hide=function(){if(this.box!=null){this.box.style.display="none"
}this.onVisibilityChange()
};
CQ_Analytics.ClickstreamcloudUI.prototype.MODE_TEXTFIELD="textfield";
CQ_Analytics.ClickstreamcloudUI.prototype.MODE_LINK="link";
CQ_Analytics.ClickstreamcloudUI.prototype.MODE_STATIC="static";
CQ_Analytics.ClickstreamcloudUI.prototype.VERSION_FULL="full";
CQ_Analytics.ClickstreamcloudUI.prototype.VERSION_LIGHT="light";
CQ_Analytics.ClickstreamcloudUI.prototype.Section=function(D,A,B,C){this.contentbox=null;
this.section=null;
this.sessionStore=D;
this.version=A;
this.title=B.title;
this.mode=B.mode||CQ_Analytics.ClickstreamcloudUI.MODE_TEXTFIELD;
this.renderer=C;
this.sort=function(J,E){if(!E||!J){return J
}var I=[];
for(var H=0;
H<E.length;
H++){var G=E[H];
var F=$CQ.inArray(G,J);
if(F>-1){I.push(G);
J=$CQ.merge(J.slice(0,F-1),J.slice(F+1,J.length))
}}I=$CQ.merge(I,J);
return I
};
this.buildContentBox=function(){if(this.renderer){this.contentbox=this.renderer.call(this.sessionStore)
}else{this.contentbox=document.createElement("p");
this.contentbox.className="ccl-sectioncontent";
var G=CQ_Analytics.CCM.getStoreConfig(this.sessionStore.getName());
var I=CQ_Analytics.CCM.getUIConfig(this.sessionStore.getName());
var L=this.sessionStore.getPropertyNames(G.invisible);
L=this.sort(L,I.order);
var J=this.sessionStore.getData();
if(this.version==CQ_Analytics.ClickstreamcloudUI.VERSION_LIGHT){var H=new Array();
var N=new Array();
for(var K=0;
K<L.length;
K++){var F=L[K];
var Q=this.sessionStore.getProperty(F);
if(Q==F){H.push(F);
N.push(F)
}else{var P=CQ.shared.XSS.getXSSTablePropertyValue(J,F);
P=CQ_Analytics.Variables.replaceVariables(P);
if(CQ_Analytics.Utils.indexOf(H,P)==-1){H.push(P);
F=CQ.shared.XSS.KEY_REGEXP.test(F)?F.substring(0,F.length-4):F;
N.push(F)
}}}for(var K=0,E=0;
K<H.length;
K++){var F=N[K];
var O=H[K];
O=CQ_Analytics.Variables.replaceVariables(O);
if(this.mode==CQ_Analytics.ClickstreamcloudUI.MODE_LINK){var M=CQ_Analytics.Utils.externalize(this.sessionStore.getLink(F),true);
this.addLink(this.sessionStore.getLabel(F),M,"ccl-data-light",F)
}else{this.addStaticText(O,"ccl-data-light",F)
}E++;
if(E>3){E=0;
this.addLineBreak()
}}}else{for(var K=0;
K<L.length;
K++){var F=L[K];
var P=CQ.shared.XSS.getXSSTablePropertyValue(J,F);
F=CQ.shared.XSS.KEY_REGEXP.test(F)?F.substring(0,F.length-4):F;
if(this.mode==CQ_Analytics.ClickstreamcloudUI.MODE_TEXTFIELD){this.addNameValueField(this.sessionStore.getLabel(F),P,F,"ccl-data",F)
}else{if(this.mode==CQ_Analytics.ClickstreamcloudUI.MODE_LINK){var M=CQ_Analytics.Utils.externalize(this.sessionStore.getLink(F),true);
this.addLink(this.sessionStore.getLabel(F),M,"ccl-data",F)
}else{this.addStaticText(this.sessionStore.getLabel(F),"ccl-data",F)
}}this.contentbox.appendChild(document.createTextNode(" "))
}}}};
this.buildSection=function(){if(this.contentbox==null){this.buildContentBox()
}if(this.section==null){this.section=document.createElement("div")
}var F=document.createElement("div");
F.className="ccl-header";
this.section.appendChild(F);
var E=document.createElement("div");
E.innerHTML=CQ.shared.I18n.getVarMessage(this.title);
E.className="ccl-title";
F.appendChild(E);
this.section.appendChild(this.contentbox)
}
};
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype=new CQ_Analytics.Observable();
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype.get=function(){if(this.section==null){this.buildSection()
}return this.section
};
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype.reset=function(){if(!this.isReseting){this.isReseting=true;
if(this.section!=null){while(this.section.hasChildNodes()){this.section.removeChild(this.section.firstChild)
}this.contentbox=null
}this.buildSection();
this.isReseting=false
}};
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype.addNameValueField=function(C,D,B,A,E){this.contentbox.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createNameValue(B,D,A,E))
};
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype.addLink=function(E,C,A,D){if(C){var B=document.createElement("span");
B.className=A||"ccl-data";
B.title=D;
B.alt=D;
B.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createStaticLink(E,C,D));
this.contentbox.appendChild(B)
}else{this.addStaticText(E)
}};
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype.addStaticText=function(C,A,B){if(C){this.contentbox.appendChild(CQ_Analytics.ClickstreamcloudRenderingUtils.createText(C,A,B))
}};
CQ_Analytics.ClickstreamcloudUI.prototype.Section.prototype.addLineBreak=function(){this.contentbox.appendChild(document.createElement("br"))
};
CQ_Analytics.ClickstreamcloudUI=new CQ_Analytics.ClickstreamcloudUI();
CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.ClickstreamcloudUI.init(CQ_Analytics.CCM.getConfig()["ui"])
})
}if(!CQ_Analytics.PageDataMgr){CQ_Analytics.PageDataMgr=function(){};
CQ_Analytics.PageDataMgr.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.PageDataMgr.prototype.STORENAME="pagedata";
CQ_Analytics.PageDataMgr.prototype.FORCE_EXPERIENCE_COOKIE="cq-forceexperience";
CQ_Analytics.PageDataMgr.prototype.init=function(){this.data={};
for(var A in this.initProperty){this.data[A]=this.initProperty[A]
}this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.PageDataMgr.prototype.getLabel=function(A){return A
};
CQ_Analytics.PageDataMgr.prototype.getLink=function(A){return""
};
CQ_Analytics.PageDataMgr.prototype.setExperience=function(A){CQ.shared.HTTP.setCookie(CQ_Analytics.PageDataMgr.FORCE_EXPERIENCE_COOKIE,A,"/")
};
CQ_Analytics.PageDataMgr.prototype.getExperience=function(){return CQ.shared.HTTP.getCookie(CQ_Analytics.PageDataMgr.FORCE_EXPERIENCE_COOKIE,"/")
};
CQ_Analytics.PageDataMgr.prototype.clearExperience=function(){CQ.shared.HTTP.clearCookie(CQ_Analytics.PageDataMgr.FORCE_EXPERIENCE_COOKIE,"/")
};
CQ_Analytics.PageDataMgr=new CQ_Analytics.PageDataMgr();
CQ_Analytics.CCM.addListener("configloaded",function(){this.loadInitProperties(CQ_Analytics.CCM.getInitialData(this.getName()));
this.init();
CQ_Analytics.ClickstreamcloudUI.register(this.getSessionStore(),CQ_Analytics.CCM.getUIConfig(this.getName()));
CQ_Analytics.CCM.register(this)
},CQ_Analytics.PageDataMgr)
}CQ_Analytics.BrowserInfo=function(){var F=navigator.userAgent.toLowerCase();
var C=function(H){return H.test(F)
};
var E=function(){if(C(/opera/)){return{browserFamily:"Opera",browserVersion:""}
}if(C(/chrome/)){return{browserFamily:"Chrome",browserVersion:""}
}if(C(/safari/)){if(C(/applewebkit\/4/)){return{browserFamily:"Safari",browserVersion:"2"}
}if(C(/version\/3/)){return{browserFamily:"Safari",browserVersion:"3"}
}if(C(/version\/4/)){return{browserFamily:"Safari",browserVersion:"4"}
}if(C(/version\/5/)){return{browserFamily:"Safari",browserVersion:"5"}
}if(C(/version\/6/)){return{browserFamily:"Safari",browserVersion:"6"}
}return{browserFamily:"Safari",browserVersion:"7 or higher"}
}if(C(/webkit/)){return{browserFamily:"WebKit",browserVersion:""}
}if(C(/msie/)){if(C(/msie 6/)){return{browserFamily:"IE",browserVersion:"6"}
}if(C(/msie 7/)){return{browserFamily:"IE",browserVersion:"7"}
}if(C(/msie 8/)){return{browserFamily:"IE",browserVersion:"8"}
}if(C(/msie 9/)){return{browserFamily:"IE",browserVersion:"9"}
}if(C(/msie 10/)){return{browserFamily:"IE",browserVersion:"10"}
}return{browserFamily:"IE",browserVersion:"11 or higher"}
}if(C(/gecko/)){if(C(/rv:1\.8/)){return{browserFamily:"Firefox",browserVersion:"2"}
}if(C(/rv:1\.9/)){return{browserFamily:"Firefox",browserVersion:"3"}
}if(C(/rv:2.0/)){return{browserFamily:"Firefox",browserVersion:"4"}
}if(C(/rv:5./)){return{browserFamily:"Firefox",browserVersion:"5"}
}if(C(/rv:6./)){return{browserFamily:"Firefox",browserVersion:"6"}
}if(C(/rv:7./)){return{browserFamily:"Firefox",browserVersion:"7"}
}if(C(/rv:8./)){return{browserFamily:"Firefox",browserVersion:"8"}
}if(C(/rv:9./)){return{browserFamily:"Firefox",browserVersion:"9"}
}return{browserFamily:"Firefox",browserVersion:"10 or higher"}
}var H=C(/adobeair/);
if(H){return{browserFamily:"Adobe AIR",browserVersion:""}
}return{browserFamily:"Unresolved",browserVersion:"Unresolved"}
};
var D=function(){if(C(/windows 98|win98/)){return"Windows 98"
}if(C(/windows nt 5.0|windows 2000/)){return"Windows 2000"
}if(C(/windows nt 5.1|windows xp/)){return"Windows XP"
}if(C(/windows nt 5.2/)){return"Windows Server 2003"
}if(C(/windows nt 6.0/)){return"Windows Vista"
}if(C(/windows nt 6.1/)){return"Windows 7"
}if(C(/windows nt 4.0|winnt4.0|winnt/)){return"Windows NT 4.0"
}if(C(/windows me/)){return"Windows ME"
}if(C(/mac os x/)){if(C(/ipad/)||C(/iphone/)){return"iOS"
}return"Mac OS X"
}if(C(/macintosh|mac os/)){return"Mac OS"
}if(C(/android/)){return"Android"
}if(C(/linux/)){return"Linux"
}return"Unresolved"
};
var B=function(){if(C(/ipad/)){return"iPad"
}if(C(/iphone/)){return"iPhone"
}if(C(/mobi/)){return"Mobile"
}return"Desktop"
};
var A=E.call();
this.browserFamily=A.browserFamily;
this.browserVersion=A.browserVersion;
this.browserName=this.browserFamily+" "+this.browserVersion;
this.OSName=D.call();
this.deviceType=B.call();
this.ua=F;
var G=/^https/i.test(window.location.protocol);
this.screenResolution=screen.width+"x"+screen.height
};
CQ_Analytics.BrowserInfo.prototype={getBrowserName:function(){return this.browserName
},getBrowserFamily:function(){return this.browserFamily
},getBrowserVersion:function(){return this.browserVersion
},getOSName:function(){return this.OSName
},getScreenResolution:function(){return this.screenResolution
},getDeviceType:function(){return this.deviceType
},getUserAgent:function(){return this.ua
},isMobile:function(A){if(!A){A=this.getDeviceType()
}A=A?A.toLowerCase():"desktop";
return A!="desktop"
},isIE:function(A){return this.getBrowserFamily()=="IE"&&(A?this.getBrowserVersion()==A:true)
},isIE6:function(){return this.isIE("6")
},isIE7:function(){return this.isIE("7")
},isIE8:function(){return this.isIE("8")
},isIE9:function(){return this.isIE("9")
}};
CQ_Analytics.BrowserInfoInstance=new CQ_Analytics.BrowserInfo();
if(!CQ_Analytics.MousePositionMgr){CQ_Analytics.MousePositionMgr=function(){this.position={x:0,y:0};
this.getPageX=function(C){var B=C.pageX;
if(!B&&0!==B){B=C.clientX||0
}return B
};
this.getPageY=function(B){var C=B.pageY;
if(!C&&0!==C){C=B.clientY||0
}return C
};
var A=this;
this.timer=null;
$(document).bind("mousemove",function(E,D,C,H){var F=E||window.event;
if(F){if(!A.timer){var B=A.getPageX(F);
var G=A.getPageY(F);
A.timer=setTimeout(function(){A.setPosition(B,G);
A.timer=null
},500)
}}});
this.init()
};
CQ_Analytics.MousePositionMgr.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.MousePositionMgr.prototype.STORENAME="mouseposition";
CQ_Analytics.MousePositionMgr.prototype.setPosition=function(A,B){this.position.x=A;
this.position.y=B;
this.fireEvent("update")
};
CQ_Analytics.MousePositionMgr.prototype.getProperty=function(A){return this.position[A]
};
CQ_Analytics.MousePositionMgr.prototype.getLabel=function(A){return A
};
CQ_Analytics.MousePositionMgr.prototype.getLink=function(A){return""
};
CQ_Analytics.MousePositionMgr.prototype.getPropertyNames=function(){var A=new Array();
for(var B in this.position){A.push(B)
}return A
};
CQ_Analytics.MousePositionMgr.prototype.getSessionStore=function(){return this
};
CQ_Analytics.MousePositionMgr.prototype.getData=function(A){return this.position
};
CQ_Analytics.MousePositionMgr.prototype.clear=function(){this.position={}
};
CQ_Analytics.MousePositionMgr=new CQ_Analytics.MousePositionMgr();
CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.CCM.register(this)
},CQ_Analytics.MousePositionMgr)
}if(!CQ_Analytics.EventDataMgr){CQ_Analytics.EventDataMgr=function(){};
CQ_Analytics.EventDataMgr.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.EventDataMgr.prototype.STORENAME="eventdata";
CQ_Analytics.EventDataMgr.prototype.init=function(){this.data={};
for(var A in this.initProperty){this.data[A]=this.initProperty[A]
}this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.EventDataMgr.prototype.getLabel=function(A){return A
};
CQ_Analytics.EventDataMgr.prototype.getLink=function(A){return""
};
CQ_Analytics.EventDataMgr=new CQ_Analytics.EventDataMgr();
CQ_Analytics.CCM.addListener("configloaded",function(){this.loadInitProperties(CQ_Analytics.CCM.getInitialData(this.getName()));
this.init();
CQ_Analytics.ClickstreamcloudUI.register(this.getSessionStore(),CQ_Analytics.CCM.getUIConfig(this.getName()));
CQ_Analytics.CCM.register(this)
},CQ_Analytics.EventDataMgr)
}if(!window.CQ_Context){window.CQ_Context=function(){};
window.CQ_Context.prototype=new CQ_Analytics.Observable();
window.CQ_Context.prototype.getProfile=function(){return(function(){return{getUserId:function(){return this.getProperty("authorizableId")
},getDisplayName:function(){var A=this.getProperty("formattedName");
if(A){return A
}A=this.getProperty("displayName");
if(A){return A
}return this.getUserId()
},getFirstname:function(){return this.getProperty("givenName")
},getLastname:function(){return this.getProperty("familyName")
},getEmail:function(){return this.getProperty("email")
},getProperty:function(A){if(CQ_Analytics&&CQ_Analytics.ProfileDataMgr){return CQ_Analytics.ProfileDataMgr.getProperty(A)
}return""
},getProperties:function(){if(CQ_Analytics&&CQ_Analytics.ProfileDataMgr){return CQ_Analytics.ProfileDataMgr.getData()
}return{}
},getAvatar:function(){return this.getProperty("avatar")
},onUpdate:function(A,B){if(A&&CQ_Analytics&&CQ_Analytics.ProfileDataMgr){CQ_Analytics.ProfileDataMgr.addListener("update",A,B||this)
}}}
})()
};
window.CQ_Context=new window.CQ_Context()
}window.CQ_trackTeasersStats=true;
function initializeTeaserLoader(B,F,G,E,A,D){E=CQ.Ext&&(E=="true"||E===true);
if(window.CQ_Analytics){var C=function(){var N=(E)?"/_jcr_content/par.html?wcmmode=disabled":"/_jcr_content/par.html";
var L=CQ_Analytics.PageDataMgr.getExperience();
if(L){CQ_Analytics.PageDataMgr.clearExperience();
var K=L+N;
jQuery("#"+G).load(K,function(){Teaser.afterTeaserLoad()
});
return
}var M=function(P){var R="";
var V=new Array();
if(CQ_Analytics.SegmentMgr){var T=0;
for(var Q=0;
Q<B.length;
Q++){var S=CQ.shared.HTTP.externalize(B[Q].path+".html");
if(!B[Q]["segments"]||B[Q]["segments"].length==0||CQ_Analytics.SegmentMgr.resolveArray(B[Q]["segments"])===true){var O=CQ_Analytics.SegmentMgr.getMaxBoost(B[Q]["segments"]);
var U=[B[Q]["title"],O,B[Q].thumbnail,S];
if(P==B[Q].path){R+=CQ.I18n.getMessage('<b><a href="{3}" class="cq-teaser-segment-link"><img src="{2}" class="cq-teaser-decision-thumbnail cq-teaser-decision-match"></a>Teaser: {0} - match ( boost = {1} )</b><br>',U)
}else{R+=CQ.I18n.getMessage('<a href="{3}" class="cq-teaser-segment-link"><img src="{2}" class="cq-teaser-decision-thumbnail cq-teaser-decision-match"></a>Teaser: {0} - match ( boost = {1} )<br>',U)
}if(O==T){V.push(B[Q])
}else{if(O>T){V=new Array();
V.push(B[Q]);
T=O
}}}else{var U=[B[Q]["title"],B[Q].thumbnail,S];
R+=CQ.I18n.getMessage('<a href="{2}" class="cq-teaser-segment-link"><img src="{1}" class="cq-teaser-decision-thumbnail cq-teaser-decision-nomatch"></a>Teaser: {0} - no match<br>',U)
}}}R+=CQ.I18n.getMessage("<br>Strategy <b>{0}</b> selected current teaser.<br>",F);
return R
};
var J=null;
var H=null;
var I=function(){var V=new Array();
if(CQ_Analytics.SegmentMgr){var T=0;
for(var R=0;
R<B.length;
R++){if(!B[R]["segments"]||B[R]["segments"].length==0||CQ_Analytics.SegmentMgr.resolveArray(B[R]["segments"])===true){var O=CQ_Analytics.SegmentMgr.getMaxBoost(B[R]["segments"]);
if(O==T){V.push(B[R])
}else{if(O>T){V=new Array();
V.push(B[R]);
T=O
}}}}}if(V.length>0){var U=V[0];
if(CQ_Analytics.StrategyMgr){var S=CQ_Analytics.StrategyMgr.choose(F,V);
if(S!=null){U=S
}}if(!J||J.path!=U.path){J=U;
var P=U.path+N;
P=CQ.shared.HTTP.addSelectors(P,CQ.shared.HTTP.getSelectors());
jQuery("#"+G).load(P,function(){Teaser.afterTeaserLoad()
});
if(window.CQ_trackTeasersStats&&A){if(!CQ_Analytics.loadedTeasersStack){CQ_Analytics.loadedTeasersStack=[];
$(window).unload(function(){try{var W=CQ_Analytics.loadedTeasersStack;
if(W){delete CQ_Analytics.loadedTeasersStack;
var Y=A;
for(var Z=0;
Z<W.length;
Z++){Y=CQ.shared.HTTP.addParameter(Y,"path",W[Z])
}CQ.shared.HTTP.get(Y,function(){})
}}catch(X){}})
}CQ_Analytics.loadedTeasersStack.push(U.path)
}if(E){if(D){var Q=CQ.WCM.getEditable(D);
if(Q){if(Q&&Q.teaserToolTip){Q.teaserToolTip.hide();
Q.teaserToolTip.remove();
Q.teaserToolTip=null
}else{Q.on(CQ.wcm.EditRollover.EVENT_SHOW_HIGHTLIGHT,function(W){if(!this.teaserInfoButton){this.teaserInfoButton=CQ.Ext.DomHelper.append("CQ",{tag:"div",cls:"x-tool x-tool-help cq-teaser-tooltip-tool"},true);
this.teaserInfoButton.position("absolute");
this.teaserInfoButton.on("click",function(){if(!Q.teaserToolTip){Q.teaserToolTip=new CQ.Ext.Tip({html:M(J.path),title:CQ.I18n.getMessage("Selection decision"),width:450,autoHide:false,closable:true,height:300,floating:true,autoHeight:false,bodyStyle:"overflow-y: scroll;"})
}var X=this.getXY();
Q.teaserToolTip.setPosition(X[0]-460,X[1]-100);
Q.teaserToolTip.show()
})
}this.teaserInfoButton.anchorTo(W.frameBottom.getEl(),"tr",[-26,-15]);
this.teaserInfoButton.show()
});
Q.on(CQ.wcm.EditRollover.EVENT_HIDE_HIGHTLIGHT,function(W){if(this.teaserInfoButton){this.teaserInfoButton.hide()
}})
}}}}}}else{if(E){var Q=CQ.WCM.getEditable(D);
if(Q&&Q.teaserToolTip){Q.teaserToolTip.hide();
Q.teaserToolTip.remove();
Q.teaserToolTip=null
}}CQ_Analytics.Utils.clearElement(G);
J=null
}};
I.call();
if(CQ_Analytics.SegmentMgr){CQ_Analytics.SegmentMgr.addListener("update",I)
}};
if(CQ_Analytics.CCM.areStoresInitialized){C.call(this)
}else{CQ_Analytics.CCM.addListener("storesinitialize",C)
}}}window.CQ_trackLandingPagesStats=true;
function initializeLandingPageLoader(F,D,E,C,A){C=CQ.Ext&&(C=="true"||C===true);
if(window.CQ_Analytics){var G=".html";
var B=function(){var I=null;
var H=function(){var K=new Array();
if(CQ_Analytics.SegmentMgr){var R=0;
for(var O=0;
O<F.length;
O++){if(!F[O]["segments"]||F[O]["segments"].length==0||CQ_Analytics.SegmentMgr.resolveArray(F[O]["segments"])===true){var U=CQ_Analytics.SegmentMgr.getMaxBoost(F[O]["segments"]);
if(U==R){K.push(F[O])
}else{if(U>R){K=new Array();
K.push(F[O]);
R=U
}}}}}if(K.length>0){var N=K[0];
if(CQ_Analytics.StrategyMgr){var S=CQ_Analytics.StrategyMgr.choose(D,K);
if(S!=null){N=S
}}if(!I||I.path!=N.path){var W=I;
I=N;
var M=CQ.shared.HTTP.get(N.path+G);
var X=M.responseText;
var P=function(m,Z){var g="";
if(m&&m.indexOf('id="'+Z+'"')!=-1){var f=m.indexOf('id="'+Z+'"');
var a=m.substring(0,f).lastIndexOf("<div");
var e=m.substring(a);
var l=e.split(new RegExp("<div","ig"));
var c=0;
for(var d=0;
d<l.length;
d++){c++;
var h=l[d].split(new RegExp("</div","ig"));
for(var b=1;
b<h.length;
b++){c--;
if(c==1){var Y=l[d].lastIndexOf("</div")+6;
Y=e.indexOf(l[d])+Y;
e=e.substring(0,Y);
e=e.substring(e.indexOf(">")+1,e.lastIndexOf("</div"));
return e
}}}}return""
};
X=P(X,E);
var T=$("#"+E)[0];
var Q=function(a,Y){if(C){var b=CQ.WCM.getEditables();
for(var c in b){var Z=b[c];
if(!a||Z.path.indexOf(a)!=-1){Z.hide();
Z.remove()
}}}};
var L=document.createElement("div");
L.innerHTML=X;
if(W){$("object",T).parent().fadeOut("slow");
$("img",T).fadeOut("slow");
$(T).slideUp("slow",function(){Q(W.path,false);
$(T).children().remove();
var Y=T.insertBefore(L,T.firstChild);
$(T).slideDown("slow",function(){if(C){CQ.DOM.executeScripts(CQ.Ext.get(L))
}})
})
}else{var J=T.insertBefore(L,T.firstChild);
$(T).slideDown("slow",function(){if(C){CQ.DOM.executeScripts(CQ.Ext.get(L))
}})
}try{if(window.CQ_trackLandingPagesStats&&A){if(!CQ_Analytics.loadedLandingPagesStack){CQ_Analytics.loadedLandingPagesStack=[];
$(window).unload(function(){try{var b=CQ_Analytics.loadedLandingPagesStack;
if(b){delete CQ_Analytics.loadedLandingPagesStack;
var Z=A;
for(var a=0;
a<b.length;
a++){Z=CQ.shared.HTTP.addParameter(Z,"path",b[a])
}CQ.shared.HTTP.get(Z,function(){})
}}catch(Y){}})
}CQ_Analytics.loadedLandingPagesStack.push(N.path)
}}catch(V){}}}else{CQ_Analytics.Utils.clearElement(E);
I=null
}};
H.call();
if(CQ_Analytics.SegmentMgr){CQ_Analytics.SegmentMgr.addListener("update",H)
}};
if(CQ_Analytics.ClickstreamcloudMgr){if(CQ_Analytics.ClickstreamcloudMgr.areStoresLoaded){B.call(this)
}else{CQ_Analytics.ClickstreamcloudMgr.addListener("storesloaded",B)
}}}}CQ_Analytics.PersistedJSONStore=function(){};
CQ_Analytics.PersistedJSONStore.prototype=new CQ_Analytics.PersistedSessionStore();
CQ_Analytics.PersistedJSONStore.prototype.STOREKEY="";
CQ_Analytics.PersistedJSONStore.prototype.STORENAME="";
CQ_Analytics.PersistedJSONStore.prototype.init=function(){var A=new CQ_Analytics.SessionPersistence();
var B=A.get(this.getStoreKey());
if(!B||B==""){this.data={};
for(var C in this.initProperty){this.data[C]=this.initProperty[C]
}}else{this.data=this.parse(B)
}this.persist();
this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.PersistedJSONStore.prototype.clear=function(){var A=new CQ_Analytics.SessionPersistence();
A.remove(this.getStoreKey());
this.data=null;
this.initProperty={}
};
CQ_Analytics.PersistedJSONStore.prototype.initJSON=function(B,C){if(!C){this.initProperty={}
}var A=function(G,D,F){for(var E in F){if(typeof F[E]=="object"){A(G,D?D+"/"+E:E,F[E])
}else{G[D?D+"/"+E:E]=F[E]
}}};
A(this.initProperty,null,B)
};
CQ_Analytics.PersistedJSONStore.prototype.getJSON=function(){var E=this.getData();
var C={};
for(var G in E){var D=G.split("/");
var F=C;
for(var B=0;
B<D.length;
B++){var A=D[B];
if(B==D.length-1){F[A]=E[G]
}else{F[A]=F[A]||{};
F=F[A]
}}}return C
};
CQ_Analytics.PersistedJSONStore.getInstance=function(A,C){var B=new CQ_Analytics.PersistedJSONStore();
B.STOREKEY=A.toUpperCase();
B.STORENAME=A;
B.initJSON(C);
return B
};
CQ_Analytics.PersistedJSONStore.registerNewInstance=function(A,B){var C=CQ_Analytics.PersistedJSONStore.getInstance(A,B);
C.init();
CQ_Analytics.CCM.register(C);
return C
};
CQ_Analytics.JSONStore=function(){};
CQ_Analytics.JSONStore.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.JSONStore.prototype.STOREKEY="";
CQ_Analytics.JSONStore.prototype.STORENAME="";
CQ_Analytics.JSONStore.prototype.init=function(){this.data={};
for(var A in this.initProperty){this.data[A]=this.initProperty[A]
}this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.JSONStore.prototype.clear=function(){this.data=null;
this.initProperty={}
};
CQ_Analytics.JSONStore.prototype.initJSON=function(B,C){if(!C){this.initProperty={}
}var A=function(G,D,F){for(var E in F){if(typeof F[E]=="object"){A(G,D?D+"/"+E:E,F[E])
}else{G[D?D+"/"+E:E]=F[E]
}}};
A(this.initProperty,null,B)
};
CQ_Analytics.JSONStore.prototype.getJSON=function(){var E=this.getData();
var C={};
for(var G in E){var D=G.split("/");
var F=C;
for(var B=0;
B<D.length;
B++){var A=D[B];
if(B==D.length-1){F[A]=E[G]
}else{F[A]=F[A]||{};
F=F[A]
}}}return C
};
CQ_Analytics.JSONStore.getInstance=function(A,C){var B=new CQ_Analytics.JSONStore();
B.STOREKEY=A.toUpperCase();
B.STORENAME=A;
B.initJSON(C);
return B
};
CQ_Analytics.JSONStore.registerNewInstance=function(A,B){var C=CQ_Analytics.JSONStore.getInstance(A,B);
C.init();
CQ_Analytics.CCM.register(C);
return C
};
CQ_Analytics.PersistedJSONPStore=function(){};
CQ_Analytics.PersistedJSONPStore.prototype=new CQ_Analytics.PersistedJSONStore();
CQ_Analytics.PersistedJSONPStore.prototype.setServiceURL=function(A){this.serviceURL=A
};
CQ_Analytics.PersistedJSONPStore.prototype.getServiceURL=function(){return this.serviceURL
};
CQ_Analytics.PersistedJSONPStore.prototype.load=function(D,A,E){var C=this.getName();
if(!CQ_Analytics.PersistedJSONPStore.JSONPCallbacks[this.getName()]){CQ_Analytics.PersistedJSONPStore.JSONPCallbacks[C]=function(G){var F=CQ_Analytics.CCM.getRegisteredStore(C);
if(F){F.initJSON(G);
if(A){F.initJSON(A,true)
}}if(E){E.call(F)
}}
}if(D){this.setServiceURL(D)
}var B=this.serviceURL;
B=B.replace("${callback}","CQ_Analytics.PersistedJSONPStore.JSONPCallbacks."+C);
$.getScript(B)
};
CQ_Analytics.PersistedJSONPStore.JSONPCallbacks={};
CQ_Analytics.PersistedJSONPStore.getInstance=function(E,F,B,A,D){if(E&&F){try{var G=new CQ_Analytics.PersistedJSONPStore();
G.STOREKEY=E.toUpperCase();
G.STORENAME=E;
if(F){G.setServiceURL(F)
}if(!A){G.load(F,B,D)
}return G
}catch(C){console.log("Cannot create the JSONP store",E,F,C)
}}return null
};
CQ_Analytics.PersistedJSONPStore.registerNewInstance=function(D,E,B,F){if(!E){return null
}if(!D){var A=CQ.shared.HTTP.getSchemeAndAuthority(E);
if(A){if(A.indexOf(".")!=-1){A=A.substring(0,A.lastIndexOf("."));
D=A.substring(A.lastIndexOf(".")+1)
}else{D=A.substring(A.lastIndexOf("/")+1)
}}else{D=E
}}var C=CQ_Analytics.PersistedJSONPStore.getInstance(D,E,B,false,function(){this.init();
this.reset();
if(F){F.call(this)
}});
if(C!=null){CQ_Analytics.CCM.register(C);
return C
}return null
};
CQ_Analytics.JSONPStore=function(){};
CQ_Analytics.JSONPStore.prototype=new CQ_Analytics.JSONStore();
CQ_Analytics.JSONPStore.prototype.setServiceURL=function(A){this.serviceURL=A
};
CQ_Analytics.JSONPStore.prototype.getServiceURL=function(){return this.serviceURL
};
CQ_Analytics.JSONPStore.prototype.load=function(D,A,E){var C=this.getName();
if(!CQ_Analytics.JSONPStore.JSONPCallbacks[this.getName()]){CQ_Analytics.JSONPStore.JSONPCallbacks[C]=function(G){var F=CQ_Analytics.CCM.getRegisteredStore(C);
if(F){F.initJSON(G);
if(A){F.initJSON(A,true)
}}if(E){E.call(F)
}}
}if(D){this.setServiceURL(D)
}var B=this.serviceURL;
B=B.replace("${callback}","CQ_Analytics.JSONPStore.JSONPCallbacks."+C);
$.getScript(B)
};
CQ_Analytics.JSONPStore.JSONPCallbacks={};
CQ_Analytics.JSONPStore.getInstance=function(E,F,B,A,D){if(E){try{var G=new CQ_Analytics.JSONPStore();
G.STOREKEY=E.toUpperCase();
G.STORENAME=E;
if(F){G.setServiceURL(F);
if(!A){G.load(F,B,D)
}}return G
}catch(C){console.log("Cannot create the JSONP store",E,F,C)
}}return null
};
CQ_Analytics.JSONPStore.registerNewInstance=function(D,E,B,F){if(!D&&E){var A=CQ.shared.HTTP.getSchemeAndAuthority(E);
if(A){if(A.indexOf(".")!=-1){A=A.substring(0,A.lastIndexOf("."));
D=A.substring(A.lastIndexOf(".")+1)
}else{D=A.substring(A.lastIndexOf("/")+1)
}}else{D=E
}}var C=CQ_Analytics.JSONPStore.getInstance(D,E,B,false,function(){this.init();
this.reset();
if(F){F.call(this)
}});
if(C!=null){CQ_Analytics.CCM.register(C);
return C
}return null
};
$(function(){CQ_Analytics.Slider=function(A){return{init:function(){this.vertical=A.vertical;
this.clazz=A.clazz;
this.parent=A.parent;
this.container=$("<div>").addClass("cq-cc-slider").addClass("cq-cc-slider-"+((this.vertical)?"vertical":"horizontal")).addClass(this.clazz).appendTo(this.parent);
this.container.hide();
this.carousel=$("<ul>").addClass("jcarousel-skin-cq-cc").appendTo(this.container)
},show:function(){if(!this.isWidget){var B=this;
A.initCallback=function(C){B.carouselObj=C
};
this.carousel.jcarousel(A);
this.isWidget=true
}var B=this;
this.select(this.computeSelectedIndex(),true,true);
if(this.vertical){this.container.slideDown("fast")
}else{$(".cq-cc-slider",this.parent).css("top",(this.parent.position().top-9)+"px");
$(".cq-cc-slider",this.parent).css("left",(this.parent.position().left-27)+"px");
$(".cq-cc-slider",this.parent).fadeIn(1000,function(){$(".jcarousel-container-horizontal",B.parent).animate({width:"270px"},"fast");
$(".jcarousel-clip-horizontal",B.parent).animate({width:"268px"},"fast",function(){B.carousel.jcarousel()
})
})
}B.container.bind("click",this.stopPropagation);
$(document).bind("click",{scope:this},this.handleDocClick)
},handleDocClick:function(B){B.data.scope.hide()
},stopPropagation:function(B){B.stopPropagation()
},hide:function(){$(document).unbind("click",this.handleDocClick);
this.container.unbind("click",this.stopPropagation);
if(this.vertical){this.container.slideUp("fast")
}else{var B=this;
$(".jcarousel-container-horizontal",this.parent).animate({width:"90px"},"fast");
$(".jcarousel-clip-horizontal",this.parent).animate({width:"90px"},"fast",function(){$(".cq-cc-slider",B.parent).fadeOut(1000)
})
}},select:function(D,G,C){var F=this.getSelected();
if(G||F.length==0||F.attr("jcarouselindex")!=D){var E=this.getItem(D);
F.removeClass("jcarousel-item-selected");
E.addClass("jcarousel-item-selected");
$(this.container).find(".jcarousel-item-selected-marker").removeClass("jcarousel-item-selected-marker");
var B=this.getCurrentValue();
var H=E.children().attr("data-id");
$(this.container).find("[data-id='"+H+"']").addClass("jcarousel-item-selected-marker");
if(B!=H){this.onSelect(H)
}this.carouselObj.scroll($.jcarousel.intval(E.attr("jcarouselindex")),!C)
}},getSelected:function(){return $(this.container).find(".jcarousel-item-selected")
},computeSelectedIndex:function(){var B=this.getCurrentValue();
return $(this.container).find("[data-id='"+B+"']").parent().attr("jcarouselindex")||0
},getItem:function(B){return $(this.container).find("[jcarouselindex="+B+"]")
},onSelect:function(B){},getCurrentValue:function(){}}
}
});
CQ_Analytics.record=function(C){if(C.collect){return[C.event,C.values]
}else{if(C.event){C.options=C.options||{};
try{CQ_Analytics.recordBeforeCallbacks.sort(function(G,F){return G.rank-F.rank
});
for(var E in CQ_Analytics.recordBeforeCallbacks){if(CQ_Analytics.recordBeforeCallbacks[E].func.call(this,C)){return
}}}catch(D){}var A=C.dataMgr||CQ_Analytics.EventDataMgr;
A.reset();
if(typeof C.event=="string"){A.setProperty("events",C.event)
}else{A.setProperty("events",C.event.join("\u2026"))
}if(C.values){for(var B in C.values){A.setProperty(B,C.values[B])
}}try{CQ_Analytics.recordAfterCallbacks.sort(function(G,F){return G.rank-F.rank
});
for(var E in CQ_Analytics.recordAfterCallbacks){if(CQ_Analytics.recordAfterCallbacks[E].func.call(this,C)){return
}}}catch(D){}}}};
CQ_Analytics.recordBeforeCallbacks=[];
CQ_Analytics.recordAfterCallbacks=[];
CQ_Analytics.registerBeforeCallback=function(B,A){CQ_Analytics.recordBeforeCallbacks.push({rank:A,func:B})
};
CQ_Analytics.registerAfterCallback=function(B,A){CQ_Analytics.recordAfterCallbacks.push({rank:A,func:B})
};
if(!CQ_Analytics.ClientContext){CQ_Analytics.ClientContext=new function(){return{get:function(F,C){if(F){if(F.indexOf("/")!=0){F="/"+F
}var D=F.split("/")[1];
var B=F.substring(F.indexOf("/"+D)+D.length+2,F.length);
var A=CQ_Analytics.CCM.getRegisteredStore(D);
if(A){if(B){var E=A.getProperty(B);
if(E&&C){E=CQ_Analytics.Variables.replaceVariables(E)
}return E
}return A
}}return null
},set:function(E,D){if(E){if(E.indexOf("/")!=0){E="/"+E
}var C=E.split("/")[1];
var B=E.substring(E.indexOf("/"+C)+C.length+2,E.length);
var A=CQ_Analytics.CCM.getRegisteredStore(C);
if(A){if(B){A.setProperty(B,D)
}}}},clear:function(){var A=CQ_Analytics.CCM.getStores();
if(A){for(var B in A){if(A[B].clear){A[B].clear()
}}}},reset:function(){var A=CQ_Analytics.CCM.getStores();
if(A){for(var B in A){if(A[B].reset){A[B].reset()
}}}},persist:function(A){CQ_Analytics.ClientContextMgr.ServerStorage.post(A,true)
}}
}();
window.ClientContext=CQ_Analytics.ClientContext;
window.ContextCloud=CQ_Analytics.ClientContext
}if(!CQ_Analytics.ClientContextUI){CQ_Analytics.ClientContextUI=function(){this.loaded=false;
this.ccUrl=null;
this.visible=false;
this.rendered=false;
this.containerId=null;
this.boxId=null;
this.contentPlaceholderId=null;
this.editMode=false
};
CQ_Analytics.ClientContextUI.prototype=new CQ_Analytics.Observable();
CQ_Analytics.ClientContextUI.prototype.SHOW_BOX_COOKIE="cq-show-clientcontext";
CQ_Analytics.ClientContextUI.prototype.init=function(B,A,E,C,D){this.ccUrl=B;
this.containerId=A;
this.boxId=E;
this.contentPlaceholderId=C;
this.editMode=D;
$(document).bind("keydown",CQ_Analytics.Utils.eventWrapper(function(F,G){if(F.ctrlKey&&F.altKey&&G=="C".charCodeAt(0)){CQ_Analytics.ClientContextUI.toggle()
}}));
if(CQ_Analytics.Cookie.read(this.SHOW_BOX_COOKIE)=="true"){this.show()
}};
CQ_Analytics.ClientContextUI.prototype.render=function(){if(!this.rendered&&this.fireEvent("beforerender")!==false){this.rendered=true;
this.fireEvent("render")
}};
CQ_Analytics.ClientContextUI.prototype.load=function(C){if(this.ccUrl&&(!this.loaded||C)&&this.fireEvent("beforeload")!==false){var B=CQ.shared.HTTP.addParameter(this.ccUrl,"wcmmode",this.editMode?"preview":"disabled");
var A=CQ.shared.HTTP.get(B);
$("#"+this.contentPlaceholderId).html(A.responseText);
this.loaded=true;
this.fireEvent("load")
}};
CQ_Analytics.ClientContextUI.prototype.show=function(){this.load();
this.render();
if(this.fireEvent("beforeshow")!==false){if($.support.opacity){$("#"+this.containerId).show("normal")
}else{$("#"+this.containerId).show()
}this.visible=true;
CQ_Analytics.Cookie.set(this.SHOW_BOX_COOKIE,"true",365);
this.fireEvent("show")
}};
CQ_Analytics.ClientContextUI.prototype.hide=function(){if(this.fireEvent("beforehide")!==false){if($.support.opacity){$("#"+this.containerId).hide("fast")
}else{$("#"+this.containerId).hide()
}this.visible=false;
CQ_Analytics.Cookie.set(this.SHOW_BOX_COOKIE,"false",365);
this.fireEvent("hide")
}};
CQ_Analytics.ClientContextUI.prototype.toggle=function(){if(this.visible){this.hide()
}else{this.show()
}};
CQ_Analytics.ClientContextUI.prototype.onLoad=function(B,A){if(B){if(this.loaded){B.call(A||this)
}else{this.addListener("load",B,A)
}}};
CQ_Analytics.ClientContextUI.prototype.isAvailable=function(){return this.boxId&&$("#"+this.boxId).length>0
};
CQ_Analytics.ClientContextUI.prototype.getBoxId=function(){return this.boxId
};
CQ_Analytics.ClientContextUI=new CQ_Analytics.ClientContextUI();
CQ_Analytics.ClientContextUI.CONTAINER_ID="cq-clientcontext-container";
CQ_Analytics.ClientContextUI.BOX_ID="cq-clientcontext-box";
CQ_Analytics.ClientContextUI.BOX_CLASS="cq-clientcontext";
CQ_Analytics.ClientContextUI.ACTIONS_ID="cq-clientcontext-box-actions";
CQ_Analytics.ClientContextUI.ACTIONS_CONTAINER_ID="cq-clientcontext-box-actions-container";
CQ_Analytics.ClientContextUI.CONTENT_ID="cq-clientcontext-box-content";
CQ_Analytics.ClientContextUI.createPlaceholders=function(){var B=$("<div>").attr("id",CQ_Analytics.ClientContextUI.BOX_ID).addClass(CQ_Analytics.ClientContextUI.BOX_CLASS);
B.append($("<div>").attr("id",CQ_Analytics.ClientContextUI.ACTIONS_ID).append($("<div>").attr("id",CQ_Analytics.ClientContextUI.ACTIONS_CONTAINER_ID)));
B.append($("<div>").attr("id",CQ_Analytics.ClientContextUI.CONTENT_ID));
var A=$("<div>").attr("id",CQ_Analytics.ClientContextUI.CONTAINER_ID);
A.append(B);
$("body").append(A)
};
CQ_Analytics.ClientContextUI.create=function(B,A){CQ_Analytics.ClientContextUI.createPlaceholders();
CQ_Analytics.ClientContextUI.addListener("beforerender",function(){$("<div>").addClass("cq-clientcontext-box-action").addClass("cq-clientcontext-design").attr("title","Open the ClientContext design page").appendTo("#"+CQ_Analytics.ClientContextUI.ACTIONS_CONTAINER_ID).bind("click",function(){CQ.shared.Util.open(_g.shared.HTTP.externalize(B+"/content.html"))
});
$("<div>").addClass("cq-clientcontext-box-action").addClass("cq-clientcontext-load").attr("title","Load a profile in the ClientContext").appendTo("#"+CQ_Analytics.ClientContextUI.ACTIONS_CONTAINER_ID).bind("click",function(){var E=new CQ.personalization.ProfileLoader({});
E.show()
});
$("<div>").addClass("cq-clientcontext-box-action").addClass("cq-clientcontext-reset").attr("title","Reset the ClientContext").appendTo("#"+CQ_Analytics.ClientContextUI.ACTIONS_CONTAINER_ID).bind("click",function(){CQ_Analytics.ClientContext.reset()
});
$("<div>").addClass("cq-clientcontext-box-action").addClass("cq-clientcontext-close").attr("title","Close the ClientContext").appendTo("#"+CQ_Analytics.ClientContextUI.ACTIONS_CONTAINER_ID).bind("click",function(){CQ_Analytics.ClientContextUI.hide()
});
var D=$("#"+CQ_Analytics.ClientContextUI.BOX_ID).offset();
$("#"+CQ_Analytics.ClientContextUI.BOX_ID).draggable({handle:"#"+CQ_Analytics.ClientContextUI.ACTIONS_ID,revert:false,stop:function(){D=$("#"+CQ_Analytics.ClientContextUI.BOX_ID).offset()
}});
$("#"+CQ_Analytics.ClientContextUI.BOX_ID).addClass("CQjquery").resizable();
if(window.CQ&&CQ.wcm&&CQ.wcm.emulator&&CQ.wcm.emulator.EmulatorManager&&CQ.wcm.emulator.EmulatorManager.WRAPPING_EXCLUDED_IDS){CQ.wcm.emulator.EmulatorManager.WRAPPING_EXCLUDED_IDS.push(CQ_Analytics.ClientContextUI.CONTAINER_ID)
}});
var C=CQ.shared.HTTP.addParameter(B+"/content/jcr:content/stores.html","path",A);
CQ_Analytics.ClientContextUI.init(C,CQ_Analytics.ClientContextUI.CONTAINER_ID,CQ_Analytics.ClientContextUI.BOX_ID,CQ_Analytics.ClientContextUI.CONTENT_ID,true)
}
}if(!CQ_Analytics.ActivityStreamMgr){CQ_Analytics.ActivityStreamMgr=CQ_Analytics.JSONStore.registerNewInstance("activitystream",{});
CQ_Analytics.ActivityStreamMgr.internalRenderer=function(C,A){var B=C+".form.html";
B+=CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/activitystream.html");
B+="?limit=3";
CQ.shared.HTTP.get(B,function(E,F,D){$("#"+A).children().remove();
if(F){$("#"+A).append(D.body)
}})
};
CQ_Analytics.ActivityStreamMgr.renderer=function(B,A){if(!B.isReady){B.isReady=true;
CQ_Analytics.ClientContextUtils.onStoreRegistered("profile",function(C){C.addListener("update",function(E,F){var G=this.getProperty("path");
if(G!=CQ_Analytics.ActivityStreamMgr.currentProfilePath){CQ_Analytics.ActivityStreamMgr.currentProfilePath=G;
CQ_Analytics.ActivityStreamMgr.internalRenderer(G,A)
}},C);
var D=C.getProperty("path");
CQ_Analytics.ActivityStreamMgr.currentProfilePath=D;
CQ_Analytics.ActivityStreamMgr.internalRenderer(D,A)
})
}return""
}
}if(!CQ_Analytics.GeolocationUtils){CQ_Analytics.GeolocationUtils=new function(){return{init:function(B){var D;
try{if(typeof navigator.geolocation==="undefined"){D=google.gears.factory.create("beta.geolocation")
}else{D=navigator.geolocation
}}catch(E){}var A=function(F){var G=CQ_Analytics.PersistedJSONStore.registerNewInstance(B,F);
G.addListener("update",function(H,J){var K=CQ_Analytics.ClientContext.get(B+"/latitude");
var I=CQ_Analytics.ClientContext.get(B+"/longitude");
if(!K||!I){if(J!="generatedThumbnail"){G.setProperty("generatedThumbnail",CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback)
}else{if(G.getProperty(J,true)!=CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback){G.setProperty(J,CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback)
}}}else{if(G.getProperty("generatedThumbnail",true)==CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback){G.setProperty("generatedThumbnail",G.getInitProperty("generatedThumbnail"))
}if(J=="latitude"||J=="longitude"||!J){CQ_Analytics.GeolocationUtils.computeAddress(K,I,B)
}}})
};
var C=function(I,H){var G=CQ_Analytics.StoreRegistry.getStore(B);
if(G){I=I||CQ_Analytics.GeolocationUtils.DEFAULTS;
var F=I.generatedThumbnail=G.getInitProperty("generatedThumbnail");
G.initJSON(I);
if(!H){G.init();
G.setProperty("generatedThumbnail",F)
}}else{A(I)
}};
A();
if(D){D.getCurrentPosition(function(F){var G={longitude:F.coords.longitude,latitude:F.coords.latitude};
if(F.address){G.address=F.address
}C(G,CQ_Analytics.CCM.areStoresInitialized)
},function(F){if(!CQ_Analytics.CCM.areStoresInitialized){var H="Connection timeout";
if(F.code==1){H="Permission denied"
}else{if(F.code==2){H="Position unavailable"
}}var G={address:{country:H}};
C(G,CQ_Analytics.CCM.areStoresInitialized)
}})
}else{C()
}},computeAddress:function(D,B,A){CQ_Analytics.ClientContext.set(A+"/address/region");
CQ_Analytics.ClientContext.set(A+"/address/countryCode");
CQ_Analytics.ClientContext.set(A+"/address/country");
var C=function(){var E=new google.maps.LatLng(D,B);
var F=new google.maps.Geocoder();
F.geocode({location:E},function(G,I){if(I==="OK"&&G[0]&&G[0].address_components){for(var J=0;
J<G[0].address_components.length;
J++){var H=G[0].address_components[J];
if(H.types&&H.types.length){if(H.types[0]=="administrative_area_level_1"){CQ_Analytics.ClientContext.set(A+"/address/region",H.short_name)
}else{if(H.types[0]=="country"){CQ_Analytics.ClientContext.set(A+"/address/countryCode",H.short_name);
CQ_Analytics.ClientContext.set(A+"/address/country",H.long_name)
}}}}}})
};
if(!window.google){window.geocode_callback=C;
$.getScript("http://maps.google.com/maps/api/js?sensor=false&callback=geocode_callback")
}else{C.call()
}}}
}();
CQ_Analytics.GeolocationUtils.DEFAULTS={latitude:37.331375,longitude:-121.893992};
CQ_Analytics.GeolocationUtils.THUMBNAILS={fallback:"http://maps.googleapis.com/maps/api/staticmap?center=37,-121&zoom=0&size=80x80&sensor=false"}
}if(!CQ_Analytics.ProfileDataMgr){CQ_Analytics.ProfileDataMgr=function(){this.addListener("beforepersist",function(){this.checkAuthorizableId()
},this)
};
CQ_Analytics.ProfileDataMgr.prototype=new CQ_Analytics.PersistedSessionStore();
CQ_Analytics.ProfileDataMgr.prototype.STOREKEY="PROFILEDATA";
CQ_Analytics.ProfileDataMgr.prototype.STORENAME="profile";
CQ_Analytics.ProfileDataMgr.prototype.LOADER_PATH=CQ_Analytics.Utils.externalize("/libs/cq/personalization/components/profileloader/content/load.js",true);
CQ_Analytics.ProfileDataMgr.prototype.PROFILE_LOADER=CQ_Analytics.Utils.externalize("/libs/cq/personalization/components/profileloader/content/load.json",true);
CQ_Analytics.ProfileDataMgr.prototype.init=function(){var A=new CQ_Analytics.SessionPersistence();
var B=A.get(this.getStoreKey());
if(!B||B==""){this.data={};
for(var C in this.initProperty){this.data[C]=this.initProperty[C]
}}else{this.data=this.parse(B)
}this.persist();
this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.ProfileDataMgr.prototype.checkAuthorizableId=function(){if(!this.data){this.init()
}if(this.data.authorizableId){CQ_Analytics.CCM.setVisitorId(this.data.authorizableId)
}else{CQ_Analytics.CCM.setVisitorId("")
}};
CQ_Analytics.ProfileDataMgr.prototype.getLabel=function(A){return A
};
CQ_Analytics.ProfileDataMgr.prototype.getLink=function(A){return""
};
CQ_Analytics.ProfileDataMgr.prototype.clear=function(){var A=new CQ_Analytics.SessionPersistence();
A.remove(this.getStoreKey());
this.data=null;
this.initProperty={}
};
CQ_Analytics.ProfileDataMgr.prototype.getLoaderURL=function(){return CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/profiledata/loader.json")
};
CQ_Analytics.ProfileDataMgr.prototype.loadProfile=function(authorizableId){var url=this.getLoaderURL();
url=CQ_Analytics.Utils.addParameter(url,"authorizableId",authorizableId);
try{var object=CQ.shared.HTTP.eval(url);
if(object){this.data={};
for(var p in object){this.data[p]=object[p]
}this.persist();
this.fireEvent("initialize",this);
this.fireEvent("update");
if(CQ_Analytics.ClickstreamcloudEditor){CQ_Analytics.ClickstreamcloudEditor.reload()
}return true
}}catch(error){if(console&&console.log){console.log("Error during profile loading",error)
}}return false
};
CQ_Analytics.ProfileDataMgr=new CQ_Analytics.ProfileDataMgr();
CQ_Analytics.CCM.addListener("configloaded",function(){this.checkAuthorizableId();
this.addListener("update",function(A,I){if(I=="birthday"||!I){var J=this.getProperty("birthday");
var K=this.getProperty("age");
var G="";
if(J){try{var C=function(N,M){var L=new Date(M.getTime());
L.setUTCHours(N.getUTCHours(),N.getUTCMinutes(),N.getUTCSeconds(),N.getUTCMilliseconds());
var O=L.getTime()-N.getTime();
return O/(1000*60*60*24)
};
var D=function(L){var M=new Date(L.getFullYear(),0,0);
return C(L,M)*-1
};
var H=new Date(Date.parse(J));
if(!isNaN(H.getTime())){var F=new Date();
if(D(H)==D(F)&&H.getMonth()==F.getMonth()){G=CQ.shared.HTTP.externalize(CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/profiledata/resources/birthday_cake.png"))
}else{var B=F.getFullYear()-H.getFullYear();
if(D(H)>D(F)){G=B
}else{G=Math.max(0,B-1)
}}}else{G=""
}}catch(E){G=""
}}if(K!=G){this.setProperty("age",G)
}}});
CQ_Analytics.ClickstreamcloudUI.register(this.getSessionStore(),CQ_Analytics.CCM.getUIConfig(this.getName()));
CQ_Analytics.CCM.register(this)
},CQ_Analytics.ProfileDataMgr)
}if(CQ_Analytics.SegmentMgr&&!CQ_Analytics.SegmentMgr.isResolvedRegistered){CQ_Analytics.SegmentMgr.isResolvedRegistered=true;
CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.StoreRegistry.register(CQ_Analytics.SegmentMgr);
CQ_Analytics.CCM.fireEvent("storeregister",CQ_Analytics.SegmentMgr);
CQ_Analytics.ClickstreamcloudUI.register(this.getSessionStore(),CQ_Analytics.CCM.getUIConfig(this.getName()))
},CQ_Analytics.SegmentMgr)
}if(!CQ_Analytics.SocialGraphMgr){CQ_Analytics.SocialGraphMgr=CQ_Analytics.JSONPStore.registerNewInstance("socialgraph");
CQ_Analytics.SocialGraphMgr.internalRenderer=function(A){var C=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");
CQ_Analytics.SocialGraphMgr.lastUid=C;
var D=CQ_Analytics.ProfileDataMgr.getProperty("path");
var B=D+".form.html";
B+=CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/socialgraph.js");
B+="?limit=10";
B+="&callback=${callback}";
CQ_Analytics.SocialGraphMgr.load(CQ.shared.HTTP.externalize(B),{},function(){$("#"+A).children().remove();
CQ_Analytics.SocialGraphMgr.reset();
var F=CQ_Analytics.ProfileDataMgr.getProperty("formattedName");
var E=$("<div>").addClass("cq-socialgraph");
$("<div>").addClass("cq-socialgraph-text").html(F+"'s friends and followers (social graph): ").appendTo(E);
var M={};
var H=this.getJSON();
var N=H.friends;
if(N){for(var I in N){if(N[I]["authorizableId"]){M[N[I]["authorizableId"]]=N[I]
}}}var K=H.followers;
if(K){for(var I in K){if(K[I]["authorizableId"]){M[K[I]["authorizableId"]]=K[I]
}}}var L=0;
for(var G in M){var J=M[G];
$("<img>").attr("title",J.formattedName||J.authorizableId).attr("src",_g.shared.HTTP.externalize(J.avatar)).appendTo(E);
L++;
if(L>=9){break
}}E.hide();
$("#"+A).append(E);
E.fadeIn("fast")
})
};
CQ_Analytics.SocialGraphMgr.renderer=function(B,A){var C=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");
if(C!=CQ_Analytics.SocialGraphMgr.lastUid){CQ_Analytics.SocialGraphMgr.internalRenderer(A)
}};
CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.CCM.register(this);
CQ_Analytics.ProfileDataMgr.addListener("update",function(){var A=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");
if(A!=this.lastUid){this.fireEvent("update")
}},CQ_Analytics.SocialGraphMgr)
},CQ_Analytics.SocialGraphMgr)
}if(!CQ_Analytics.MobileSliderUtils){CQ_Analytics.MobileSliderUtils=function(){return{injectCss:function(A){$("head").append("<link>");
var B=$("head").children(":last");
B.attr({rel:"stylesheet",type:"text/css",href:_g.shared.HTTP.externalize(A)})
},removeCss:function(A){$("[href='"+_g.shared.HTTP.externalize(A)+"']").remove()
},switchToMobile:function(A){this.injectMobileBodyClass(A);
this.injectMobileCss(A)
},switchToDesktop:function(A){this.injectDesktopBodyClass(A);
this.injectDesktopCss(A)
},injectDesktopCss:function(D){var A=this.getConfig(D,"DESKTOP_CSS");
if(A){for(var C=0;
C<A.length;
C++){var B=A[C];
CQ_Analytics.MobileSliderUtils.injectCss(CQ_Analytics.Variables.replace(B,"app",D))
}}A=this.getConfig(D,"MOBILE_CSS");
if(A){for(var C=0;
C<A.length;
C++){var B=A[C];
CQ_Analytics.MobileSliderUtils.removeCss(CQ_Analytics.Variables.replace(B,"app",D))
}}},injectMobileCss:function(D){var A=this.getConfig(D,"MOBILE_CSS");
if(A){for(var C=0;
C<A.length;
C++){var B=A[C];
CQ_Analytics.MobileSliderUtils.injectCss(CQ_Analytics.Variables.replace(B,"app",D))
}}A=this.getConfig(D,"DESKTOP_CSS");
if(A){for(var C=0;
C<A.length;
C++){var B=A[C];
CQ_Analytics.MobileSliderUtils.removeCss(CQ_Analytics.Variables.replace(B,"app",D))
}}},injectMobileBodyClass:function(C){var B=this.getConfig(C,"MOBILE_BODY_CLASS");
if(B){for(var A=0;
A<B.length;
A++){var D=B[A];
$(document.body).addClass(D)
}}B=this.getConfig(C,"DESKTOP_BODY_CLASS");
if(B){for(var A=0;
A<B.length;
A++){var D=B[A];
$(document.body).removeClass(D)
}}},injectDesktopBodyClass:function(C){var B=this.getConfig(C,"DESKTOP_BODY_CLASS");
if(B){for(var A=0;
A<B.length;
A++){var D=B[A];
$(document.body).addClass(D)
}}B=this.getConfig(C,"MOBILE_BODY_CLASS");
if(B){for(var A=0;
A<B.length;
A++){var D=B[A];
$(document.body).removeClass(D)
}}},getConfig:function(C,B){var A=CQ_Analytics.MobileSliderUtils.CONFIG[C];
if(!A){return null
}return CQ_Analytics.MobileSliderUtils.CONFIG[C][B]
}}
}();
CQ_Analytics.MobileSliderUtils.CONFIG=window.CQMobileSlider||{}
}if(!CQ_Analytics.SurferInfoMgr){CQ_Analytics.SurferInfoMgr=function(){};
CQ_Analytics.SurferInfoMgr.prototype=new CQ_Analytics.SessionStore();
CQ_Analytics.SurferInfoMgr.prototype.STOREKEY="SURFERINFO";
CQ_Analytics.SurferInfoMgr.prototype.STORENAME="surferinfo";
CQ_Analytics.SurferInfoMgr.prototype.init=function(){this.data={};
for(var A in this.initProperty){this.data[A]=this.initProperty[A]
}this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.SurferInfoMgr.prototype.clear=function(){this.data=null;
this.initProperty={}
};
CQ_Analytics.SurferInfoMgr.prototype.getLabel=function(A){return A
};
CQ_Analytics.SurferInfoMgr.prototype.getLink=function(A){return""
};
CQ_Analytics.SurferInfoMgr=new CQ_Analytics.SurferInfoMgr();
CQ_Analytics.CCM.addListener("configloaded",function(){var B=CQ_Analytics.BrowserInfoInstance;
this.addInitProperty("browserFamily",B.getBrowserFamily());
this.addInitProperty("browserVersion",B.getBrowserVersion());
this.addInitProperty("browser","${/surferinfo/browserFamily} ${/surferinfo/browserVersion}");
this.addInitProperty("OS",B.getOSName());
this.addInitProperty("resolution",B.getScreenResolution());
this.addInitProperty("device",B.getDeviceType());
this.addInitProperty("isMobile",B.isMobile());
this.addInitProperty("userAgent",B.getUserAgent());
var A=new Date();
this.addInitProperty("day",A.getDate());
this.addInitProperty("month",A.getMonth()+1);
this.addInitProperty("year",A.getFullYear());
this.addInitProperty("hours",A.getHours());
this.addInitProperty("minutes",A.getMinutes());
var C="${/surferinfo/browserFamily}";
if(B.isMobile()){C="${/surferinfo/device}"
}this.addInitProperty("image",C);
var D=CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/surferinfo/resources/${/surferinfo/image}.png");
this.addInitProperty("thumbnail",D);
if(CQ_Analytics.MousePositionMgr){CQ_Analytics.MousePositionMgr.addListener("update",function(){this.setProperty("mouse X",CQ_Analytics.MousePositionMgr.getProperty("x"));
this.setProperty("mouse Y",CQ_Analytics.MousePositionMgr.getProperty("y"))
},this)
}this.addListener("update",function(){var F=this.getProperty("device");
var G="${/surferinfo/browserFamily}";
if(B.isMobile(F)){G="${/surferinfo/device}"
}var E=this.getProperty("image");
if(E!=G){this.setProperty("image",G)
}},this);
CQ_Analytics.ClickstreamcloudUI.register(this.getSessionStore(),CQ_Analytics.CCM.getUIConfig(this.getName()));
CQ_Analytics.CCM.register(this)
},CQ_Analytics.SurferInfoMgr)
}if(!CQ_Analytics.TagCloudMgr){CQ_Analytics.TagCloudMgr=function(){this.data=null;
this.addedTags={};
this.frequencies=null;
this.initialTags=null;
this.initialAddedTags={};
this.copyObject=function(C){var B={};
for(var A in C){B[A]=C[A]
}return B
}
};
CQ_Analytics.TagCloudMgr.prototype=new CQ_Analytics.PersistedSessionStore();
CQ_Analytics.TagCloudMgr.prototype.STOREKEY="TAGCLOUD";
CQ_Analytics.TagCloudMgr.prototype.STORENAME="tagcloud";
CQ_Analytics.TagCloudMgr.prototype.parseTagList=function(A){var C={};
var B=A.split(",");
for(var D in B){if(B.hasOwnProperty(D)){var E=B[D].split("=");
if(E.length==2){C[E[0]]=parseInt(E[1])
}}}return C
};
CQ_Analytics.TagCloudMgr.prototype.parseString=function(A){this.data=this.parseTagList(A);
return this
};
CQ_Analytics.TagCloudMgr.prototype.add=function(A){this.addedTags[A]=true;
this.data[A]=(this.data[A]||0)+1
};
CQ_Analytics.TagCloudMgr.prototype.each=function(B){for(var A in this.data){if(this.data.hasOwnProperty(A)){B(A,this.data[A])
}}};
CQ_Analytics.TagCloudMgr.prototype.calculateFrequencies=function(){var C={};
var A=[];
this.each(function(D,E){if(!C[E]){A.push(E)
}C[E]=true
});
A.sort(function B(E,D){if(E>D){return 1
}if(E<D){return -1
}return 0
});
return A
};
CQ_Analytics.TagCloudMgr.prototype.calculateNtile=function(B,C){if(this.frequencies===null){this.frequencies=this.calculateFrequencies()
}var A=0;
while(true){if((A>=(this.frequencies.length-1))||(this.frequencies[A]>=B)){return Math.ceil((A+1)/this.frequencies.length*C)
}A++
}};
CQ_Analytics.TagCloudMgr.prototype.getTags=function(){return this.data
};
CQ_Analytics.TagCloudMgr.prototype.getData=function(A){return this.getTags()
};
CQ_Analytics.TagCloudMgr.prototype.getTag=function(A){return this.data[A]>0?this.data[A]:0
};
CQ_Analytics.TagCloudMgr.prototype.init=function(A){var B=new CQ_Analytics.SessionPersistence();
var D=B.get(this.getStoreKey());
D=D===null?"":new String(D);
this.data=this.parseTagList(D);
if(A){for(var C in A){if(A.hasOwnProperty(C)){this.add(A[C])
}}}this.initialTags=this.copyObject(this.data);
this.initialAddedTags=this.copyObject(this.addedTags);
this.persist();
this.initialized=true;
this.fireEvent("initialize",this);
this.fireEvent("update")
};
CQ_Analytics.TagCloudMgr.prototype.setProperty=function(A,B){if(this.data==null){this.init()
}if(B>0){this.addedTags[A]=true;
this.data[A]=B>0?B:0
}else{delete this.addedTags[A];
delete this.data[A]
}this.persist();
this.fireEvent("update")
};
CQ_Analytics.TagCloudMgr.prototype.reset=function(){this.clear();
this.fireEvent("update")
};
CQ_Analytics.TagCloudMgr.prototype.getProperty=function(A){if(this.data==null){this.init()
}return this.data[A]>0?this.data[A]:0
};
CQ_Analytics.TagCloudMgr.prototype.removeProperty=function(A){if(this.data==null){this.init()
}this.setProperty(A,0)
};
CQ_Analytics.TagCloudMgr.prototype.clear=function(){var A=new CQ_Analytics.SessionPersistence();
A.remove(this.getStoreKey());
this.addedTags={};
this.data={}
};
CQ_Analytics.TagCloudMgr.prototype.getLink=function(A){return""
};
CQ_Analytics.TagCloudMgr.prototype.getLabel=function(B){if(B){var C=B.split(":");
var A=C[C.length-1].split("/");
B=A[A.length-1]
}return B
};
CQ_Analytics.TagCloudMgr.prototype.createHTMLElement=function(){var E=document.createElement("div");
var C=document.createElement("div");
var B=this;
C.className="cloud";
var D=0;
this.each(function(G,J){var F=document.createElement("div");
var I=B.calculateNtile(J,10);
var K=G.split(":");
var H=K[K.length-1].split("/");
F.innerHTML=H[H.length-1];
F.className="tag";
if(B.addedTags[G]){F.className+=" new"
}F.className+=" tag"+I;
F.title=G+" ("+J+")";
F.setAttribute("data-property",G);
F.setAttribute("data-store",B.STORENAME);
C.appendChild(F);
C.appendChild(document.createTextNode(" "));
D++
});
if(D==0){var A=document.createElement("div");
A.className="tag notag";
A.innerHTML="No interest";
C.appendChild(A)
}E.appendChild(C);
return E
};
CQ_Analytics.TagCloudMgr=new CQ_Analytics.TagCloudMgr();
CQ_Analytics.TagCloudMgr.renderer=function(A,B){if(A&&A.STORENAME==CQ_Analytics.TagCloudMgr.STORENAME){$("#"+B).children().remove();
$("#"+B).append(A.createHTMLElement())
}};
CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.ClickstreamcloudUI.register(this.getSessionStore(),CQ_Analytics.CCM.getUIConfig(this.getName()),this.createHTMLElement);
CQ_Analytics.CCM.register(this)
},CQ_Analytics.TagCloudMgr)
};
    jQuery(function() {
        if (CQ_Analytics != undefined && CQ_Analytics.SegmentMgr != undefined) {
            CQ_Analytics.SegmentMgr.loadSegments("https://l1.osdimg.com/online/design/segmentation");
            CQ_Analytics.ClientContextUtils.init("https://l1.osdimg.com/online/design/clientcontext/default","/content/g2m/en_US");
            CQ_Analytics.ClientContextUtils.initUI("https://l1.osdimg.com/online/design/clientcontext/default","/content/g2m/en_US");
        }
    });
	jQuery(document).ready(function() {
		var countrySelectorContainer = '<div id="localeContainer" style="display:none; width: auto">';
			countrySelectorContainer += '<div class="top-arrow"></div>';
			countrySelectorContainer += '<ul>';
				countrySelectorContainer += '<li class="groups">';
				countrySelectorContainer += '<ul>';
				countrySelectorContainer += '<li class="countryGroup"><h5>Americas</h5></li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://br.gotomeeting.com/fec/" class="country br">Brazil</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.ca/fec/" class="country ca">English Canada</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://fr-ca.gotomeeting.com/fec/" class="country ca">French Canada</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.com/" class="country us">United States</a> ';
						countrySelectorContainer += '</li>';
				countrySelectorContainer += '</ul>';
				countrySelectorContainer += '<li class="groups">';
				countrySelectorContainer += '<ul>';
				countrySelectorContainer += '<li class="countryGroup"><h5>Asia Pacific</h5></li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.com.au/fec/" class="country au">Australia</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.com.hk/" class="country hk">Hong Kong</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.in/fec/" class="country in">India</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.jp/" class="country jp">Japan</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.com.sg/" class="country sg">Singapore</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.co.kr/" class="country kr">South Korea</a> ';
						countrySelectorContainer += '</li>';
				countrySelectorContainer += '</ul>';
				countrySelectorContainer += '<li class="groups">';
				countrySelectorContainer += '<ul>';
				countrySelectorContainer += '<li class="countryGroup"><h5>Europe</h5></li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.at/" class="country at">Austria</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.be/fec/" class="country be">Belgium</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.dk/fec/" class="country dk">Denmark</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.fi/" class="country fi">Finland</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.fr/" class="country fr">France</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.de/" class="country de">Germany</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.it/" class="country it">Italy</a> ';
						countrySelectorContainer += '</li>';
				countrySelectorContainer += '</ul>';
				countrySelectorContainer += '<li class="groups">';
				countrySelectorContainer += '<ul>';
				countrySelectorContainer += '<li class="countryGroup"><h5>&nbsp;</h5></li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.ie/fec/" class="country ie">Ireland</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.nl/fec/" class="country nl">Netherlands</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://no.gotomeeting.com/fec/" class="country no">Norway</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.es/" class="country es">Spain</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.se/fec/" class="country se">Sweden</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.ch/" class="country ch">Switzerland</a> ';
						countrySelectorContainer += '</li>';
						countrySelectorContainer += '<li>';
						countrySelectorContainer += '<a href="http://www.gotomeeting.co.uk/fec/" class="country uk">United Kingdom</a> ';
						countrySelectorContainer += '</li>';
				countrySelectorContainer += '</ul>';
			countrySelectorContainer += '</ul>';
			countrySelectorContainer += '<div class="clearBoth"></div>';
			countrySelectorContainer += '</div>';
		jQuery('#lightbox-container div#lightbox-border').append(countrySelectorContainer);
			if(typeof(tracker1)!='undefined')
				tracker1.appendJumpParamsToLinks();
			if(typeof(tracker2)!='undefined')
				tracker2.appendJumpParamsToLinks();
			if(typeof(tracker3)!='undefined')
				tracker3.appendJumpParamsToLinks();
			if(typeof(tracker4)!='undefined')
				tracker4.appendJumpParamsToLinks();
		if(typeof(tracker)!='undefined')
			tracker.appendJumpParamsToLinks();
	});
        jQuery(document).ready(function() {
	jQuery(".hero-content-container .marginContainer>div ").each(function(){
		var margTop = jQuery(this).css('margin-top');
		jQuery(this).css({ "margin-top": "0", "padding-top": margTop });
	});
});
    jQuery(document).ready(function() {
        var layout ="hidden";
        if(layout == 'show' || layout == 'hidden') {
			BCL.createVideo("960",
			                "540",
			                "1675052805001",
			                "AQ~~%2CAAABZBJSQZE~%2C4_PvRAOLkj8hkIolbhdsBI5Qew6zdhg6",
			                "1686274712001",
			                "meeting_overview");
			brightcove.createExperiences();
        }
    });
    jQuery(document).ready(function() {
        var layout ="hidden";
        if(layout == 'show' || layout == 'hidden') {
			BCL.createVideo("960",
			                "540",
			                "1675052805001",
			                "AQ~~%2CAAABZBJSQZE~%2C4_PvRAOLkj8hkIolbhdsBI5Qew6zdhg6",
			                "1809060654001",
			                "mindjet_story");
			brightcove.createExperiences();
        }
    });
	    $(document).ready( function(){
	    	Carousel.init();
	    });
    jQuery(document).ready(function() {
        var brightcoveVideoContainer = "<div id='_content_g2mblueprint_en_US_jcr_content_mainContent_voiceofthecustomer_media_brightcovelightbox' style='display:none; width:480px;'></div>";
        jQuery('#lightbox-container div#lightbox-border').append(brightcoveVideoContainer);
        BCL.createVideo("480",
						"270",
						"1675052805001",
						"AQ~~%2CAAABZBJSQZE~%2C4_PvRAOLkj8hkIolbhdsBI5Qew6zdhg6",
						"2562422517001",
						"_content_g2mblueprint_en_US_jcr_content_mainContent_voiceofthecustomer_media_brightcovelightbox");
        brightcove.createExperiences();
    });
    var utag_data = {
        pageset:"",
        template:"home",
        product:"g2mwt",
        sub_section:"collaboration",
        website_country:"us",
        language:"en",
        content_type:"home",
        section:"web"
    };
    if( typeof analyticsAbTest != "undefined" )
        utag_data['ab_test'] = analyticsAbTest;
    if( typeof analyticsAbBranch != "undefined" )
        utag_data['ab_branch'] = analyticsAbBranch;
var utag_condload=false;try{(function(){function ul(src,a,b){a=document;b=a.createElement('script');b.language='javascript';b.type='text/javascript';b.src=src;a.getElementsByTagName('head')[0].appendChild(b)};if((""+document.cookie).match("utag_env_citrix_collaboration-prelogin-v2=([^\S;]*)")){if(RegExp.$1.indexOf("/prod/")===-1){ul(RegExp.$1);utag_condload=true;__tealium_default_path='//tags.tiqcdn.com/utag/citrix/collaboration-prelogin-v2/prod/';}}})();}catch(e){};try{if(typeof dnt=="object"&&dnt.dntTrue()){if(typeof utag_cfg_ovrd=='undefined')utag_cfg_ovrd={};utag_cfg_ovrd['noload']=1}}catch(e){};if(typeof utag=="undefined"&&!utag_condload){var utag={id:"citrix.collaboration-prelogin-v2",o:{},sender:{},send:{},rpt:{ts:{a:new Date()}},dbi:[],loader:{q:[],lc:0,f:{},p:0,ol:0,wq:[],ft:0,rf:0,ri:0,rp:0,rq:[],lh:function(a,b,c){a=""+location.hostname;b=a.split(".");c=(/\.co\.|\.com\.|\.org\.|\.edu\.|\.net\./.test(a))?3:2;return b.splice(b.length-c,c).join(".");},WQ:function(a,b,c,d){utag.DB('WQ:'+utag.loader.wq.length);c=true;try{utag.loader.GET()}catch(e){};var lq=[];for(a=0;a<utag.loader.wq.length;a++){b=utag.loader.wq[a];b.load=utag.loader.cfg[b.id].load;if(b.load>0&&b.send){c=false;utag.send[b.id]=b;}
if(b.load!=0&&b.load!=4){lq.push(b);this.f[b.id]=0;}}
if(c){d=false;for(b in utag.loader.GV(utag.send))d=true;if(c&&d)this.LOAD('WAIT_FORCE');}
this.wq=[];for(a=0;a<lq.length;a++){utag.DB('utag.loader.WAIT: loading '+lq[a].id);utag.loader.AS(lq[a])}
if(lq.length==0)utag.handler.INIT();},AS:function(a,b,c,d){utag.sender[a.id]=a;if(typeof a.src=='undefined'){a.src=utag.cfg.path+((typeof a.name!='undefined')?a.name:'utag.'+a.id+'.js')}
a.src+=(a.src.indexOf('?')>0?'&':'?')+'utv='+utag.cfg.v;utag.rpt['l_'+a.id]=a.src;b=document;if(a.load==2){b.write('<script id="utag_'+a.id+'" src="'+a.src+'"></scr'+'ipt>')}else if(a.load==1||a.load==3){if(b.createElement){c='utag_citrix.collaboration-prelogin-v2_'+a.id;if(!b.getElementById(c)){if(a.load==3){d=b.createElement('iframe');d.setAttribute('height','1');d.setAttribute('width','1');d.setAttribute('style','display:none');d.setAttribute('src',a.src);d.id=c;b.getElementsByTagName('head')[0].appendChild(d)}else{utag.ut.libloader(a.src,c,utag.loader.cfg[a.id].loc);}}}}},GV:function(a,b,c){b={};for(c in a){if(a.hasOwnProperty(c)&&typeof a[c]!="function")b[c]=a[c];}
return b},RD:function(o,a,b,c,d,e,f,g){a=document.getElementsByTagName("meta");for(b=0;b<a.length;b++){if(a[b].name&&a[b].name!="")o["meta."+a[b].name.toLowerCase()]=a[b].content.toLowerCase();}
a=location.search.toLowerCase();if(a.length>1){b=a.substring(1).split('&');for(a=0;a<b.length;a++){c=b[a].split("=");o["qp."+c[0]]=utag.ut.decode(c[1])}}
a=(new Date()).getTime();b=utag.loader.RC();c=a+parseInt(utag.cfg.session_timeout);d=a+(Math.ceil(Math.random()*1000000));if((b.utag_main&&(typeof b.utag_main._st=="undefined"||(typeof b.utag_main._st!="undefined"&&parseInt(b.utag_main._st)<a)))||!b.utag_main){if(b.utag_main){b.utag_main._st=c;b.utag_main.ses_id=d;}else{b.utag_main={_st:c,ses_id:d}}
utag.loader.SC("utag_main",{"_st":c,"ses_id":d+";exp-session"});}else{utag.loader.SC("utag_main",{"_st":c})}
for(d in b){if(d.match(/utag_(.*)/)){for(c in utag.loader.GV(b[d])){o["cp.utag_"+RegExp.$1+"_"+c]=b[d][c];}}}
for(c in utag.loader.GV((utag.cl&&!utag.cl['_all_'])?utag.cl:b)){if(c.indexOf("utag_")<0&&typeof b[c]!="undefined")o["cp."+c]=b[c];}
o["dom.referrer"]=eval("document."+"referrer");o["dom.title"]=""+document.title;o["dom.domain"]=""+location.hostname;o["dom.query_string"]=""+(location.search).substring(1);o["dom.url"]=""+document.URL;o["dom.pathname"]=""+location.pathname;},RC:function(a,x,b,c,d,e,f,g,h,i,j,k,l,m,n,o,v,ck,cv){o={};b=(""+document.cookie!="")?(document.cookie).split("; "):[];for(c=0;c<b.length;c++){if(b[c].match(/^(.*?)=(.*)$/)){ck=RegExp.$1;cv=RegExp.$2;}
e=utag.ut.decode(cv);if(typeof ck!="undefined"&&(ck.indexOf("ulog")==0||ck.indexOf("utag_")==0)){e=e.split("$");g=[];j={};for(f=0;f<e.length;f++){try{g=e[f].split(":");if(g.length>2){g[1]=g.slice(1).join(":");}
v="";if((""+g[1]).indexOf("~")==0){h=g[1].substring(1).split("|");for(i=0;i<h.length;i++)h[i]=utag.ut.decode(h[i]);v=h}else v=utag.ut.decode(g[1]);j[g[0]]=v;}catch(er){};}
o[ck]={};e=(new Date()).getTime();for(f in utag.loader.GV(j)){if(j[f]instanceof Array){n=[];for(m=0;m<j[f].length;m++){if(j[f][m].match(/^(.*);exp-(.*)$/)){k=(RegExp.$2=="session")?(typeof j._st!="undefined"?j._st:e-1):parseInt(RegExp.$2);if(k>e)n[m]=(x==0)?j[f][m]:RegExp.$1;}}
j[f]=n.join("|");}else{j[f]=""+j[f];if(j[f].match(/^(.*);exp-(.*)$/)){k=(RegExp.$2=="session")?(typeof j._st!="undefined"?j._st:e-1):parseInt(RegExp.$2);j[f]=(k<e)?null:(x==0?j[f]:RegExp.$1);}}
if(j[f])o[ck][f]=j[f];}}else if(utag.cl[ck]||utag.cl['_all_']){o[ck]=e}}
return(a)?(o[a]?o[a]:{}):o;},SC:function(a,b,c,d,e,f,g,h,i,j,k,x,v){if(!a)return 0;if(a=="utag_main"&&utag.cfg.nocookie)return 0;v="";x="Thu, 31 Dec 2099 00:00:00 GMT";if(c&&c=="da"){x="Thu, 31 Dec 2009 00:00:00 GMT";}else if(a.indexOf("utag_")!=0&&a.indexOf("ulog")!=0){if(typeof b!="object"){v=b}}else{d=utag.loader.RC(a,0);for(e in utag.loader.GV(b)){f=""+b[e];if(f.match(/^(.*);exp-(\d+)(\w)$/)){g=(new Date()).getTime()+parseInt(RegExp.$2)*((RegExp.$3=="h")?3600000:86400000);if(RegExp.$3=="u")g=parseInt(RegExp.$2);f=RegExp.$1+";exp-"+g;}
if(c=="i"){if(d[e]==null)d[e]=f;}else if(c=="d")delete d[e];else if(c=="a")d[e]=(d[e]!=null)?(f-0)+(d[e]-0):f;else if(c=="ap"||c=="au"){if(d[e]==null)d[e]=f;else{if(d[e].indexOf("|")>0){d[e]=d[e].split("|")}
g=(d[e]instanceof Array)?d[e]:[d[e]];g.push(f);if(c=="au"){h={};k={};for(i=0;i<g.length;i++){if(g[i].match(/^(.*);exp-(.*)$/)){j=RegExp.$1;}
if(typeof k[j]=="undefined"){k[j]=1;h[g[i]]=1;}}
g=[];for(i in utag.loader.GV(h)){g.push(i);}}
d[e]=g}}else d[e]=f;}
h=new Array();for(g in utag.loader.GV(d)){if(d[g]instanceof Array){for(c=0;c<d[g].length;c++){d[g][c]=encodeURIComponent(d[g][c])}
h.push(g+":~"+d[g].join("|"))}else h.push(g+":"+encodeURIComponent(d[g]))};if(h.length==0){h.push("");x=""}
v=(h.join("$"));}
document.cookie=a+"="+v+";path=/;domain="+utag.cfg.domain+";expires="+x;return 1},LOAD:function(a,b,c,d){utag.DB('utag.loader.LOAD:'+a);if(this.f[a]==0){utag.DB('utag.loader.LOAD:add sender-'+a);this.f[a]=1;if(utag.loader.wq.length>0)return;for(b in utag.loader.GV(this.f)){if(this.f[b]==0)return};utag.DB('CLEAR FORCE');clearTimeout(utag.loader.ft);utag.handler.INIT()}},EV:function(a,b,c,d){if(b=="ready"){if(document.readyState==="complete")setTimeout(c,1);else{if(typeof utag.loader.ready_q=="undefined"){utag.loader.ready_q=[];utag.loader.run_ready_q=function(){for(var i=0;i<utag.loader.ready_q.length;i++){utag.DB("READY_Q:"+i);try{utag.loader.ready_q[i]()}catch(e){};}}}
utag.loader.ready_q.push(c);var RH;if(utag.loader.ready_q.length<=1){if(document.addEventListener){RH=function(){document.removeEventListener("DOMContentLoaded",RH,false);utag.loader.run_ready_q()};document.addEventListener("DOMContentLoaded",RH,false);window.addEventListener("load",utag.loader.run_ready_q,false);}else if(document.attachEvent){RH=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",RH);utag.loader.run_ready_q()}};document.attachEvent("onreadystatechange",RH);window.attachEvent("onload",utag.loader.run_ready_q);}}}}else{if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent(((d==1)?"":"on")+b,c)}}}},DB:function(a,b){if(utag.cfg.utagdb===false){return;}else if(typeof utag.cfg.utagdb=="undefined"){b=document.cookie+'';utag.cfg.utagdb=((b.indexOf('utagdb=true')>=0)?true:false);}
if(utag.cfg.utagdb===true){try{console.log(a)}catch(e){}}},RP:function(a,b,c){if(typeof a!='undefined'&&typeof a.src!='undefined'&&a.src!=''){b=[];for(c in utag.loader.GV(a)){if(c!='src')b.push(c+'='+escape(a[c]));}
this.dbi.push((new Image()).src=a.src+'?utv='+utag.cfg.v+'&utid='+utag.cfg.utid+'&'+(b.join('&')));}},view:function(a,c){return this.track('view',a,c);},link:function(a,c){return this.track('link',a,c);},track:function(a,b,c){for(var i in utag.loader.GV(utag.o)){try{utag.o[i].handler.trigger(a,b)}catch(e){};}
if(c)try{c()}catch(e){};return true;},handler:{base:"",df:{},o:{},send:{},iflag:0,INIT:function(a,b,c){this.iflag=1;utag.DB('utag.handler.INIT');a=utag.loader.q.length;if(a>0){for(b=0;b<a;b++){c=utag.loader.q[b];utag.handler.trigger(c.a,c.b)}}
if(utag.cfg.noview!=true)utag.handler.trigger('view',utag.data);},test:function(){return 1},trigger:function(a,b,c,d){utag.DB('trigger:'+a);b=b||{};if(!this.iflag){utag.loader.q.push({a:a,b:b});return;}
for(c in utag.loader.GV(this.df)){if(typeof this.df[c]!="function"&&typeof b[c]=="undefined")b[c]=this.df[c]}
utag.DB('All Tags EXTENSIONS');if(typeof this.extend!="undefined"){for(c=0;c<this.extend.length;c++){try{this.extend[c](a,b);utag.rpt['ex_'+c]=0}catch(e){utag.rpt['ex_'+c]=1;utag.ut.error({e:e.message,s:utag.cfg.path+'utag.js',l:c,t:'ge'});}}}
for(c in utag.loader.GV(utag.send)){if(typeof utag.sender[c]!="undefined"){try{utag.sender[c].send(a,utag.handler.C(b));utag.rpt['s_'+c]=0}catch(e){utag.rpt['s_'+c]=1};utag.rpt.ts['s']=new Date();for(var r in utag.loader.GV(utag.cond)){if(utag.cond[r])utag.rpt['r_'+r]=1;}
utag.RP(utag.rpt);}}
c=this.base.split(",");for(d=0;d<c.length;d++){if(typeof b[c[d]]!="undefined")this.df[c[d]]=b[c[d]]};for(d in utag.loader.GV(b)){if(d.indexOf('dom.')==0)this.df[d]=b[d]};this.o=b;},C:function(a,b,c,d){b={};for(c in utag.loader.GV(a)){if(typeof a[c]!="function")b[c]=a[c]}
return b}},ut:{decode:function(a,b){b="";try{b=decodeURIComponent(a)}catch(e){};if(b==""){b=unescape(a)};return b;},error:function(a,b,c){if(typeof utag_err!="undefined"){utag_err.push(a)}
c='';for(b in a){c+=b+':'+a[b]+" , "};utag.DB(c);},libloader:function(src,id,h,l,a,b,c){a=document;b=a.createElement('script');b.language='javascript';b.type='text/javascript';b.src=src;if(id){b.id=id};if(typeof h=='function'){b.hFlag=0;b.onreadystatechange=function(){if((this.readyState=='complete'||this.readyState=='loaded')&&!b.hFlag){b.hFlag=1;h()}};b.onload=function(){if(!b.hFlag){b.hFlag=1;h()}}}else{l=l||h;}
l=l||'head';c=a.getElementsByTagName(l)[0];if(c){if(l=='script'){c.parentNode.insertBefore(b,c);}else{c.appendChild(b)}
utag.DB("Attach to "+l+": "+src)}}}};utag.o['citrix.collaboration-prelogin-v2']=utag;utag.cfg={v:"ut4.008.201310090022",session_timeout:1800000,readywait:0,noload:0,forcetimeout:3000,domain:utag.loader.lh(),path:"//tags.tiqcdn.com/utag/citrix/collaboration-prelogin-v2/prod/",utid:"citrix/collaboration-prelogin-v2/201310090022"};try{var _gaq=_gaq||[];var pageTracker=pageTracker||{_trackEvent:function(c,d,e,f,g){g={ga_eventCat:c,ga_eventAction:d,ga_eventLabel:e,ga_eventValue:f};utag.link(g);},_trackPageview:function(c){_gaq.push(['_trackPageview',c?c:null]);}}}catch(e){};try{var _gaq=_gaq||[];var pageTracker=pageTracker||{_trackEvent:function(c,d,e,f,g){g={ga_eventCat:c,ga_eventAction:d,ga_eventLabel:e,ga_eventValue:f};utag.link(g);},_trackPageview:function(c){_gaq.push(['_trackPageview',c?c:null]);}}}catch(e){};try{var _gaq=_gaq||[];var pageTracker=pageTracker||{_trackEvent:function(c,d,e,f,g){g={ga_eventCat:c,ga_eventAction:d,ga_eventLabel:e,ga_eventValue:f};utag.link(g);},_trackPageview:function(c){_gaq.push(['_trackPageview',c?c:null]);}}}catch(e){};utag.cond={32:0,67:0,63:0,16:0,44:0,55:0,57:0,40:0,61:0,49:0,35:0,53:0,48:0,42:0,46:0,65:0,50:0,39:0,36:0,64:0,58:0,41:0,47:0,8:0,52:0,38:0,60:0,56:0,45:0,66:0,37:0,43:0,62:0,54:0};utag.pre=function(){try{utag.data=(typeof utag_data!='undefined')?utag_data:{};}catch(e){utag.data={};}try{utag.loader.RD(utag.data);try{utag.cond[67]|=(utag.data['website_country']=='us')||(utag.data['website_country']=='ca')}catch(e){};try{utag.cond[32]|=(utag.data['dom.domain'].toString().indexOf('gotomeeting.co.uk')>-1&&utag.data['template']=='landingpages-sem/online-meeting')}catch(e){};try{utag.cond[63]|=(utag.data['template']=='thank-you')}catch(e){};try{utag.cond[16]|=(utag.data['product']=='g2t'&&utag.data['template']=='interactive_training')}catch(e){};try{utag.cond[44]|=(utag.data['template']=='home')}catch(e){};try{utag.cond[55]|=(utag.data['template']=='training')}catch(e){};try{utag.cond[57]|=(utag.data['template']=='business-training-software-solutions')}catch(e){};try{utag.cond[40]|=(utag.data['product']=='g2t')}catch(e){};try{utag.cond[61]|=(/(de_de|en_gb|es_es|fr_fr|it_it)/.test(utag.data['locale']))}catch(e){};try{utag.cond[49]|=(utag.data['template']=='how-it-works')}catch(e){};try{utag.cond[35]|=(utag.data['website_country']=='us')}catch(e){};try{utag.cond[53]|=(utag.data['template']=='webinar-reviews')}catch(e){};try{utag.cond[48]|=(utag.data['template']=='online-collaboration')}catch(e){};try{utag.cond[42]|=(utag.data['website_country']=='au')}catch(e){};try{utag.cond[46]|=(utag.data['template']=='web-conferencing-reviews')}catch(e){};try{utag.cond[65]|=(/^\/fec\//.test(utag.data['dom.pathname']))}catch(e){};try{utag.cond[50]|=(utag.data['template']=='secure-webinar-software')}catch(e){};try{utag.cond[39]|=(utag.data['product']=='g2w')}catch(e){};try{utag.cond[36]|=(utag.data['section']=='web')}catch(e){};try{utag.cond[64]|=(utag.data['website_country']=='ca')}catch(e){};try{utag.cond[58]|=(utag.data['template']=='online-training-software-reviews')}catch(e){};try{utag.cond[41]|=(utag.data['website_country']=='gb')}catch(e){};try{utag.cond[47]|=(utag.data['template']=='pricing')}catch(e){};try{utag.cond[8]|=(utag.data['product']=='g2w'&&utag.data['template']=='online_conference')}catch(e){};try{utag.cond[52]|=(utag.data['template']=='webinar-solutions')}catch(e){};try{utag.cond[38]|=(utag.data['product']=='g2m')}catch(e){};try{utag.cond[60]|=(utag.data['template']=='contact-sales')}catch(e){};try{utag.cond[56]|=(utag.data['template']=='online-training-software')}catch(e){};try{utag.cond[45]|=(utag.data['template']=='meeting')}catch(e){};try{utag.cond[66]|=(utag.data['template']=='online_meeting_advantage')}catch(e){};try{utag.cond[37]|=(utag.data['template']!='home')}catch(e){};try{utag.cond[43]|=(utag.data['product']=='g2mwt')}catch(e){};try{utag.cond[62]|=(utag.data['template']=='online-training-software-support')}catch(e){};try{utag.cond[54]|=(utag.data['template']=='webinar-support')}catch(e){};}catch(e){}};utag.loader.GET=function(){utag.cl={'_all_':1};utag.pre();utag.handler.extend=[function(a,b){utag_data.quantity="1";utag_data.is_direct_channel="1";utag_data.is_mobile=(/^ccTrialHHMobile_v10$/.test(utag_data.pageset))?"1":"0";utag_data.locale=utag_data.language+'_'+utag_data.website_country;var aPage=[utag_data.locale,utag_data.product,utag_data.section,utag_data.sub_section,utag_data.content_type,utag_data.template,utag_data.pageset,utag_data.conversion_type,utag_data.plan,utag_data.plan_tier,utag_data.conversion_currency];var aPage2=[];for(var i=0;i<aPage.length;i++){if(typeof(aPage[i])!='undefined'&&aPage[i]!='')aPage2.push(aPage[i]);}
utag_data.page=aPage2.join('/');var sMch=unescape(unescape(utag.loader.RC("G2MImgTrk")));var sRgx=/LastChannel=.+\/site\//
var sMch=sRgx.exec(sMch)+'';var sP1='LastChannel=';var iP1=sMch.indexOf(sP1);var iP2=sMch.lastIndexOf('/site/');if(sMch!=null&&iP1!=-1&&iP2!=-1){utag_data.channel_legacy_last=sMch.substring(iP1+sP1.length,iP2);}
if(/^\/t(g(w|t))?\/(direct|citrix|cols|ctxs|g2_home|url|g2_iv|g2w_home)(\/.*)?$/.test(utag_data.channel_legacy_last)){}else{utag_data.is_direct_channel="0";}
function getCookieVal(sNm){var oRT=false;var oAC=document.cookie.split(';');var aT='';for(el in oAC){aT=oAC[el].split('=');if(sNm==aT[0].replace(/^\s+|\s+$/g,'')){oRT=(1 in aT)?aT[1]:'';break;}}
return oRT;}
if(/^g2(m|w|t)$/.test(utag_data.product)){var sD='blank';var aK=['name','date','mark','cell','pals','prod','cmp','regtype','test'];for(var el in aK){utag_data['c_'+aK[el]+'_f']=sD;utag_data['c_'+aK[el]+'_l']=sD;}
var oC=getCookieVal('__col_mkt_GoToMeeting');if(oC!==false){var aT=oC.split('%26');for(el in aT){var aT2=aT[el].split('%3D');if(aT2[1]&&aT2[1]!=''){var aT3=aT2[0].split('_');var sT30=aT3[0].toLowerCase();var sT31=aT3[1].toLowerCase();var sT='c_'+sT31;(/^lst$/.test(sT30))?sT+='_l':sT+='_f';utag_data[sT]=aT2[1];}}}}},function(a,b){if(1){try{b['environment']=b.product+'-dev'}catch(e){};try{b['environment-locale']=b.product+'-'+b.locale+'-dev'}catch(e){}}},function(a,b){if(/^((www|cn|(en|fr)-ca|fi|hk|nl|sg)\.)?gotomeeting(\.com?)?(\.[a-zA-Z]{2})?$/.test(b['dom.domain'])){try{b['environment']=b.product+'-prod'}catch(e){};try{b['environment-locale']=b.product+'-'+b.locale+'-prod'}catch(e){}}}];utag.loader.cfg={"1":{load:1,send:1,wait:1,tid:7001},"2":{load:1,send:1,wait:1,tid:14001},"30":{load:1,send:1,wait:1,tid:3015},"40":{load:utag.cond[61],send:1,wait:1,tid:7001},"41":{load:utag.cond[61],send:1,wait:1,tid:7001},"31":{load:(utag.cond[43]&&utag.cond[44]),send:1,wait:1,tid:18007},"4":{load:(utag.cond[43]&&utag.cond[44]),send:1,wait:1,tid:4001},"5":{load:(utag.cond[38]&&utag.cond[45]),send:1,wait:1,tid:4001},"6":{load:(utag.cond[38]&&utag.cond[46]),send:1,wait:1,tid:4001},"7":{load:(utag.cond[38]&&utag.cond[47]),send:1,wait:1,tid:4001},"8":{load:(utag.cond[38]&&utag.cond[48]),send:1,wait:1,tid:4001},"15":{load:(utag.cond[39]&&utag.cond[49]),send:1,wait:1,tid:4001},"16":{load:utag.cond[8],send:1,wait:1,tid:4001},"17":{load:(utag.cond[39]&&utag.cond[48]),send:1,wait:1,tid:4001},"18":{load:(utag.cond[39]&&utag.cond[50]),send:1,wait:1,tid:4001},"19":{load:(utag.cond[39]&&utag.cond[52]),send:1,wait:1,tid:4001},"20":{load:(utag.cond[39]&&utag.cond[53]),send:1,wait:1,tid:4001},"21":{load:(utag.cond[39]&&utag.cond[47]),send:1,wait:1,tid:4001},"22":{load:(utag.cond[39]&&utag.cond[54]),send:1,wait:1,tid:4001},"9":{load:(utag.cond[40]&&utag.cond[55]),send:1,wait:1,tid:4001},"10":{load:utag.cond[16],send:1,wait:1,tid:4001},"11":{load:(utag.cond[40]&&utag.cond[56]),send:1,wait:1,tid:4001},"12":{load:(utag.cond[40]&&utag.cond[58]),send:1,wait:1,tid:4001},"13":{load:(utag.cond[40]&&utag.cond[57]),send:1,wait:1,tid:4001},"14":{load:(utag.cond[40]&&utag.cond[62]),send:1,wait:1,tid:4001},"23":{load:(utag.cond[43]&&utag.cond[44]&&utag.cond[35]),send:1,wait:1,tid:4001},"24":{load:(utag.cond[38]&&utag.cond[45]&&utag.cond[35]),send:1,wait:1,tid:4001},"25":{load:(utag.cond[39]&&utag.cond[49]&&utag.cond[35]),send:1,wait:1,tid:4001},"26":{load:(utag.cond[40]&&utag.cond[55]&&utag.cond[35]),send:1,wait:1,tid:4001},"27":{load:(utag.cond[38]&&utag.cond[60]&&utag.cond[35]),send:1,wait:1,tid:4001},"28":{load:(utag.cond[39]&&utag.cond[60]&&utag.cond[35]),send:1,wait:1,tid:4001},"29":{load:(utag.cond[40]&&utag.cond[60]&&utag.cond[35]),send:1,wait:1,tid:4001},"33":{load:(utag.cond[40]&&utag.cond[63]&&utag.cond[41]),send:1,wait:1,tid:7050},"34":{load:(utag.cond[43]&&utag.cond[44]&&utag.cond[64]),send:1,wait:1,tid:4001},"35":{load:(utag.cond[39]&&utag.cond[49]&&utag.cond[35]),send:1,wait:1,tid:4001},"37":{load:(utag.cond[39]&&utag.cond[63]&&utag.cond[41]),send:1,wait:1,tid:7050},"38":{load:(utag.cond[40]&&utag.cond[63]&&utag.cond[41]),send:1,wait:1,tid:7050},"43":{load:utag.cond[32],send:1,wait:1,tid:13032},"44":{load:(utag.cond[65]&&utag.cond[38]&&utag.cond[66]&&utag.cond[42]),send:1,wait:1,tid:4001},"45":{load:(utag.cond[43]&&utag.cond[44]&&utag.cond[42]),send:1,wait:1,tid:4001},"53":{load:(utag.cond[35]&&utag.cond[36]),send:1,wait:1,tid:13002},"55":{load:1,send:1,wait:1,tid:20010},"56":{load:(utag.cond[36]&&utag.cond[37]),send:1,wait:1,tid:13060},"57":{load:(utag.cond[38]&&utag.cond[44]&&utag.cond[42]),send:1,wait:1,tid:4001},"60":{load:1,send:1,wait:1,tid:7110},"66":{load:utag.cond[61],send:1,wait:1,tid:7110},"67":{load:utag.cond[42],send:1,wait:1,tid:7110},"68":{load:utag.cond[67],send:1,wait:1,tid:7110}};utag.loader.cfgsort=["1","2","30","40","41","31","4","5","6","7","8","15","16","17","18","19","20","21","22","9","10","11","12","13","14","23","24","25","26","27","28","29","33","34","35","37","38","43","44","45","53","55","56","57","60","66","67","68"];}
if(typeof utag_cfg_ovrd!='undefined'){for(var i in utag.loader.GV(utag_cfg_ovrd))utag.cfg[i]=utag_cfg_ovrd[i];};utag.loader.SETFORCE=function(a){utag.DB('SETFORCE:'+a);if(utag.loader.ft>0)clearTimeout(utag.loader.ft);utag.loader.ft=(utag.cfg.forcetimeout!=0)?setTimeout(utag.loader.FORCE,utag.cfg.forcetimeout):0}
utag.loader.FORCE=function(a,b,c,d){a=utag.sender;b=utag.loader.f;utag.DB('FORCE:'+a+':'+b);for(c in utag.loader.GV(b)){d=a[c].id;if(typeof b[c]!='undefined'&&b[c]==0){utag.DB('FORCEERROR:'+d);utag.rpt['f_'+d]=1;utag.ut.error({e:'load error',s:a[c].src,l:0,t:'le'});delete utag.sender[d];delete utag.send[d];utag.loader.LOAD(d)}}}
utag.loader.INIT=function(a,b,c,d,e){utag.DB('utag.loader.INIT');if(this.ol==1)return-1;else this.ol=1;utag.rpt.ts['i']=new Date();if(!utag.cfg.noload){try{this.GET()}catch(e){};var lq=[];d=this.cfgsort||this.cfg;for(a in this.GV(d)){e=(this.cfgsort?d[a]:a);b=this.cfg[e];b.id=e;if(b.wait==1){this.wq.push(b)}else if(b.load>0){if(b.send){c=false;utag.send[b.id]=b;}
if(b.load!=4){lq.push(b);this.f[b.id]=0;}}}
for(a=0;a<lq.length;a++){utag.DB('utag.loader.INIT: loading '+b.id);utag.loader.AS(lq[a])}
if(utag.loader.wq.length>0)utag.loader.EV('','ready',function(a){if(utag.loader.rf==0){utag.loader.rf=1;utag.DB('READY:utag.loader.wq');utag.loader.WQ();utag.loader.SETFORCE('WAIT')}});else if(lq.length==0)utag.handler.INIT();else utag.loader.SETFORCE('INIT')}
return 1};utag.loader.EV('','ready',function(a){if(utag.loader.efr!=1){utag.loader.efr=1;try{utag_data.quantity="1";utag_data.is_direct_channel="1";utag_data.is_mobile=(/^ccTrialHHMobile_v10$/.test(utag_data.pageset))?"1":"0";utag_data.locale=utag_data.language+'_'+utag_data.website_country;var aPage=[utag_data.locale,utag_data.product,utag_data.section,utag_data.sub_section,utag_data.content_type,utag_data.template,utag_data.pageset,utag_data.conversion_type,utag_data.plan,utag_data.plan_tier,utag_data.conversion_currency];var aPage2=[];for(var i=0;i<aPage.length;i++){if(typeof(aPage[i])!='undefined'&&aPage[i]!='')aPage2.push(aPage[i]);}
utag_data.page=aPage2.join('/');var sMch=unescape(unescape(utag.loader.RC("G2MImgTrk")));var sRgx=/LastChannel=.+\/site\//
var sMch=sRgx.exec(sMch)+'';var sP1='LastChannel=';var iP1=sMch.indexOf(sP1);var iP2=sMch.lastIndexOf('/site/');if(sMch!=null&&iP1!=-1&&iP2!=-1){utag_data.channel_legacy_last=sMch.substring(iP1+sP1.length,iP2);}
if(/^\/t(g(w|t))?\/(direct|citrix|cols|ctxs|g2_home|url|g2_iv|g2w_home)(\/.*)?$/.test(utag_data.channel_legacy_last)){}else{utag_data.is_direct_channel="0";}
function getCookieVal(sNm){var oRT=false;var oAC=document.cookie.split(';');var aT='';for(el in oAC){aT=oAC[el].split('=');if(sNm==aT[0].replace(/^\s+|\s+$/g,'')){oRT=(1 in aT)?aT[1]:'';break;}}
return oRT;}
if(/^g2(m|w|t)$/.test(utag_data.product)){var sD='blank';var aK=['name','date','mark','cell','pals','prod','cmp','regtype','test'];for(var el in aK){utag_data['c_'+aK[el]+'_f']=sD;utag_data['c_'+aK[el]+'_l']=sD;}
var oC=getCookieVal('__col_mkt_GoToMeeting');if(oC!==false){var aT=oC.split('%26');for(el in aT){var aT2=aT[el].split('%3D');if(aT2[1]&&aT2[1]!=''){var aT3=aT2[0].split('_');var sT30=aT3[0].toLowerCase();var sT31=aT3[1].toLowerCase();var sT='c_'+sT31;(/^lst$/.test(sT30))?sT+='_l':sT+='_f';utag_data[sT]=aT2[1];}}}}}catch(e){};try{function trkEv(ev,evdetail){if(typeof ntptEventTag=='function')
try{uLC=document.URL+((document.URL.indexOf('?')>0)?'&':'?')+'ni_title='+utag_data.page;ntptEventTag('lc='+encodeURIComponent(uLC)+'&ev='+ev+'&evdetail='+evdetail);}catch(e){}}
function setEvent(link){var aLink=link.href;var aRel=link.rel;var ev='';switch(aRel){case'external':ev='external_link';if(aLink.indexOf('.pdf')>0)ev='pdf';break;case'lightbox':ev='lightbox_open';if(aLink.indexOf('brightcove')>0)ev='video_start';break;case'popup':ev='popup';break;default:break;}
return ev;}
try{jQuery('a').click(function(){var ev=setEvent(this);var evdetail=this.href;trkEv(ev,evdetail);});}catch(e){}}catch(e){};try{try{jQuery('a').click(function(){var gTrk=ga.getByName('global');var gParam=gTrk.get('linkerParam');var param='&';if(this.href.indexOf('?')<0)
param='?';if(this.href.indexOf('/redirect/register/')>-1&&this.href.indexOf('_ga')<0)
this.href=this.href+param+gParam;});}catch(e){}}catch(e){};}})
utag.cfg.readywait?utag.loader.EV('','ready',function(a){if(utag.loader.rf==0){utag.loader.rf=1;utag.DB('READY:utag.cfg.readywait');utag.loader.INIT()}}):utag.loader.INIT();}
ChannelTracker.prototype.setupAppendTracking = function(){
  this.appendTrackingHosts = new Array("secure.citrixonline.com", "secure.gotoassist.com");
};
ChannelTracker.prototype.UUID = '3c772fdf-b4b6-4425-914e-8289d45263ac';
ChannelTracker.prototype.serverName = "marketing.citrixonline.com";
ChannelTracker.prototype.contextPath = "";
function ChannelTracker(productId, subdomain) {
	this.setupAppendTracking();
	if(this.dntCheck()) return;
    this.productId = productId;
    this.subdomain = subdomain;
    var actualDomain = document.domain;
    if(actualDomain.indexOf(this.subdomain) < 0) {
    	this.subdomain = null;
    }
    if (this.subdomain == null) {
        try {
            var url = '' + window.location;
            if (url.match(/@/)) {
                jQuery.url.setUrl(url.replace(/@/g, "%40"));
            }
            var results = jQuery.url.attr("host").match(/([A-Za-z0-9\-]*)((\.[A-Za-z\-]{2,3}){1,2}|(\.[A-Za-z]{2,10}))$/);
            this.subdomain = results != null && results.length > 0 ? results[0] : null;
        }catch(e){}
    }
    this.saveCookiesFromUrl();
    this.userId = jQuery.cookie('__col_visit');
    if ( this.userId == null ) {
    	this.userId = this.UUID;
        var opts = { path: '/', expires: 365, domain: this.subdomain};
        jQuery.cookie('__col_visit', this.userId, opts);
   	}
}
ChannelTracker.prototype.dntCheck =
	function () {
		return (typeof dnt == "object" && dnt.dntTrue());
	}
ChannelTracker.prototype.trackChannel =
    function () {
		if(this.dntCheck()) return;
        this.trackVisit();
        var url = '' + window.location;
        if (url.match(/@/)) {
            jQuery.url.setUrl(url.replace(/@/g, "%40"));
        }
        var chnl = jQuery.url.param("c_name");
        if (typeof chnl != 'undefined') {
            var qs = jQuery.url.attr("query");
            var cookieStr = this.createMktCookieStr(qs);
            this.writeMktCookie(cookieStr);
            this.writeTrackCookie("track","1");
        } else {
            var tracked=this.readColCookie("track");
            if (typeof tracked != 'string') {
                var cookieStr = this.createMktCookieStr("c_name=direct");
                var va = this.cookieValueToArray();
                this.writeMktCookie(cookieStr);
                this.writeTrackCookie("track","1");
            }
        }
        var theChannelTracker = this;
        jQuery(document).ready(function() {
            theChannelTracker.appendJumpParamsToForms();
            theChannelTracker.appendJumpParamsToLinks();
        });
    }
ChannelTracker.prototype.appendToChannel =
    function (attributes) {
		if(this.dntCheck()) return;
        var firstTracked = this.readColCookie("first_track");
        if (typeof attributes == 'object') {
            var va = this.cookieValueToArray();
            jQuery.each(attributes, function(key, value) {
		if ("true" === firstTracked) {
			va['FIS_'+key] = value;
		}
                va['LST_'+key] = value;
            });
            var cookieStr = '';
            jQuery.each(va, function(key, val) {
                if (key.indexOf('FIS_') == 0 || key.indexOf('LST_') == 0) {
                    var v = key + '=' + val;
                    cookieStr += cookieStr == '' ? v : '&' + v;
                }
            });
            this.writeMktCookie(cookieStr);
            this.appendJumpParamsToForms();
            this.appendJumpParamsToLinks();
        }
    }
ChannelTracker.prototype.setChannel =
    function (channel) {
		if(this.dntCheck()) return;
        var va = this.cookieValueToArray();
        var cookieStr = '';
        jQuery.each(va, function(key, val) {
            if (key.indexOf('FIS_') == 0) {
                var v = key + '=' + val;
                cookieStr += cookieStr == '' ? v : '&' + v;
            }
        });
        if (typeof channel == 'object') {
            jQuery.each(channel, function(key, value) {
                var v = key + '=' + value;
                cookieStr += cookieStr == '' ? 'LST_' + v : '&LST_' + v;
            });
        } else {
            cookieStr = cookieStr + '&LST_name=' + channel;
        }
        this.writeMktCookie(cookieStr);
        this.appendJumpParamsToForms();
        this.appendJumpParamsToLinks();
    }
ChannelTracker.prototype.getPort = function() {
    if (!this.port) {
        var foundPort = null;
        jQuery('script').each(function(i, item) {
            if (item.src.indexOf("/marketing/api/2009/api.js") > 1 && jQuery.url.setUrl(item.src).attr("port") != null) {
                foundPort = ":" + jQuery.url.setUrl(item.src).attr("port");
                return;
            }
        });
        this.port = foundPort;
    }
    return this.port || "";
}
ChannelTracker.prototype.trackChannelEvent =
    function (userKey, email, eventId, allowDuplicates, registrantInfo) {
		if(this.dntCheck()) return;
        var cookieStr=this.readColCookie("mkt");
        if (typeof cookieStr == 'string') {
            var userId = jQuery.cookie('__col_visit');
            var firstSession = (this.readColCookie("first_track") == "true");
            var registrantText = "";
            if (registrantInfo != null) {
                registrantText = (registrantInfo.firstName ? "&firstName=" + registrantInfo.firstName : "")
                                  + (registrantInfo.lastName ? "&lastName=" + registrantInfo.lastName : "")
                                  + (registrantInfo.phoneNumber ? "&phoneNumber=" + registrantInfo.phoneNumber : "")
                                  + (registrantInfo.catalogNumber ? "&catalogNumber=" + registrantInfo.catalogNumber : "")
                                  + (registrantInfo.planNumber ? "&planNumber=" + registrantInfo.planNumber : "")
                                  + (registrantInfo.regionCode ? "&regionCode=" + registrantInfo.regionCode : "")
                                  + (registrantInfo.locale ? "&locale=" + registrantInfo.locale : "");
            }
            var url = location.protocol + "//" + this.serverName + this.getPort() + this.contextPath
                      + "/api/trackChannel.json"
                      + "?email=" + email
                      + "&userKey=" + userKey
                      + "&event=" + this.encode(eventId)
                      + "&product=" + this.encode(this.productId)
                      + "&channelparams=" + this.encode(cookieStr)
                      + "&userid=" + userId
                      + "&firstsession=" + firstSession
                      + registrantText
                      + "&duplicate=" + (allowDuplicates == null ? false : allowDuplicates)
                      + "&callback=?";
            jQuery.getJSON(url,
                function(data) {
                });
        }
    }
ChannelTracker.prototype.trackExperiment =
    function (userKey, experiment) {
		if(this.dntCheck()) return;
        if (typeof experiment == 'object') {
            var url = location.protocol + "//" + this.serverName + this.getPort() + this.contextPath
                      + "/api/track/siteTracking.json?_method=POST&userKey=" + userKey;
            var p = ['experimentId', 'experimentName', 'variationId', 'variationName'];
            for (var i=0; i < p.length; i++) {
                url += '&' + p[i] + '=' + (experiment[p[i]] || '');
            }
            jQuery.getJSON(url + '&callback=?', function(data) { });
        }
    }
ChannelTracker.prototype.createMktCookieStr =
    function (qs) {
        var va = this.cookieValueToArray();
        var FIS_name = va['FIS_name'];
        var cookieStr = '';
        if (typeof FIS_name == 'undefined') {
            cookieStr = this.channelParams('FIS_', qs);
            cookieStr = cookieStr + '&' + this.channelParams('LST_', qs);
            this.writeTrackCookie("first_track","true");
        } else {
            jQuery.each(va, function(key, val) {
                if (key.indexOf('FIS_') == 0) {
                    var v = key + '=' + val;
                    cookieStr += cookieStr == '' ? v : '&' + v;
                }
            });
            cookieStr = cookieStr + '&' + this.channelParams('LST_', qs);
        }
        return cookieStr;
    }
ChannelTracker.prototype.cookieValueToArray =
    function () {
        var cookieStr=this.readColCookie("mkt");
        return this.queryStringToArray(cookieStr);
    }
ChannelTracker.prototype.queryStringToArray =
    function (value) {
        var a = { };
        if(value == null || value.length == 0)
        	return a;
        if (typeof value == "string") {
            var kv = value.split('&');
            jQuery.each(kv, function() {
                var kva = this.split('=');
                if(kva.length >= 2) {
                	kva[0] = kva[0].replace(/"/g, "");
                	kva[1] = kva[1].replace(/"/g, "");
                	a[kva[0]] = kva[1];
                }
            });
        }
        return a;
    }
ChannelTracker.prototype.channelParams =
    function (prefix, queryString) {
        var str = '';
        var qsa = this.queryStringToArray(queryString);
        jQuery.each(qsa, function(key, val) {
           if (key.indexOf("c_") == 0) {
               var v = prefix + key.substring(2) + '=' + val;
               str += str == '' ? v : '&' + v;
           }
        });
        return str;
    }
ChannelTracker.prototype.link =
    function (url) {
        window.location = this.createLinkerUrl(url);
    }
ChannelTracker.prototype.linkByPost =
    function (url, form) {
        form.action = this.createLinkerUrl(url);
        form.method = 'POST';
        form.submit();
    }
ChannelTracker.prototype.saveCookiesFromUrl =
    function () {
		if(this.dntCheck()) return;
        var cookieStr = jQuery.url.param("__col_mkt_cookies");
        if (typeof cookieStr != 'undefined') {
            cookies = decodeURIComponent(cookieStr);
            var ck = cookies.split(';');
            if(ck == null) return;
            for(i = 0; i<ck.length; i++) {
                ca = ck[i].split(/=(.+)?/);
                if(ca.length < 2 || (typeof ca[1] == 'undefined'))
                   continue;
                cookieName = jQuery.trim(ca[0]);
                cookieValue = jQuery.trim(decodeURIComponent(ca[1]));
                if(cookieName.length > 0 && cookieValue.length > 0) {
                    if(cookieName.indexOf("__col_track_") == 0)
                       this.writeTrackCookie("track", cookieValue);
                    else if (cookieName.indexOf("__col_first_track_") == 0)
                       this.writeTrackCookie("first_track", cookieValue);
            		else
            		   this.writeCookie(cookieName, cookieValue);
                }
            }
        }
    }
ChannelTracker.prototype.readColCookie=
	function(value){
		return jQuery.cookie('__col_'+value+'_'+ this.productId);
    }
ChannelTracker.prototype.writeTrackCookie =
    function (name,value) {
		if(this.dntCheck()) return;
        var opts = { path: '/' };
        if (typeof this.subdomain == "string") {
            opts.domain = this.subdomain;
        }
        jQuery.cookie('__col_'+name +'_'+ this.productId, value, opts);
    }
ChannelTracker.prototype.toggleFirstTrackCookie =
    function (value) {
		if(this.dntCheck()) return;
        var firstTracked = this.readColCookie("first_track");
        if (typeof firstTracked == 'string') {
            var opts = { path: '/' };
            if (typeof this.subdomain == "string") {
                opts.domain = this.subdomain;
            }
            jQuery.cookie('__col_first_track_' + this.productId, value, opts);
        }
    }
ChannelTracker.prototype.writeMktCookie =
    function (value) {
        this.writeCookie('__col_mkt_' + this.productId, value, this.subdomain);
    }
ChannelTracker.prototype.writeCookie =
    function (name, value) {
        var opts = { path: '/', expires: 365 };
        if (typeof this.subdomain == "string") {
            opts.domain = this.subdomain;
        }
        jQuery.cookie(name, value, opts);
    }
ChannelTracker.prototype.encode =
    function (text) {
        return encodeURIComponent(encodeURIComponent(text));
    }
ChannelTracker.prototype.decode =
    function (text) {
        return decodeURIComponent(decodeURIComponent(text));
    }
ChannelTracker.prototype.createLinkerUrl =
    function (link) {
        return link + (link.indexOf('?') > 0 ? '&' : '?') + '__col_mkt_cookies=' + this.encode(this.getColCookies());
    }
ChannelTracker.prototype.appendJumpParamsToForms =
    function() {
        var theChannelTracker = this;
            jQuery('form').each(function(i, theForm){
                var theAction = jQuery(theForm).attr('action');
                if (theAction && theAction.indexOf('http') == 0) {
                    var name = theForm.id != null && theForm.id != '' ? theForm.id : theForm.name;
                    name = name == null || name == '' ? "hidden" : name;
                    if (jQuery('#h_' + name, theForm).length != 0) {
                        jQuery('#h_' + name, theForm)[0].value = theChannelTracker.getColCookies();
                    } else {
                        jQuery(theForm).append("<input type='hidden' name='__col_mkt_cookies' value='" + theChannelTracker.getColCookies() + "' id='h_" + name + "'>");
                    }
                }
            });
    }
ChannelTracker.prototype.appendJumpParamsToLinks =
    function() {
        var theChannelTracker = this;
        jQuery('a').each(function(i, theLink){
            if (theLink.href && jQuery(theLink).attr("href").indexOf('http') == 0) {
                var theHost = jQuery.url.setUrl(theLink.href).attr("host").toLowerCase();
                var internalColLink = false;
                jQuery(theChannelTracker.appendTrackingHosts).each(function(i, value){
                    if (theHost.indexOf(jQuery.trim(value)) >= 0) {
                        internalColLink = true;
                    }
                });
                if (internalColLink) {
                    var colMktCookiesString = "__col_mkt_cookies=" + escape("__col_visit=") + jQuery.cookie('__col_visit') + escape("; ");
                    var newHref = theLink.href;
                    if (theLink.href.indexOf(colMktCookiesString) > 0) {
                        var startIndex = theLink.href.indexOf(colMktCookiesString);
                        var endIndex = theLink.href.indexOf("&", startIndex);
                        if ( startIndex > 0 ) {
                        	if ( endIndex > 0 ) {
                        		colMktCookiesString = theLink.href.substring(startIndex, endIndex - startIndex);
                       		} else {
                       			colMktCookiesString = theLink.href.substring(startIndex, theLink.href.length);
                       		}
                       		colMktCookiesString = colMktCookiesString + escape("; ");
                       	}
                        if (endIndex < 0) {
                            var urlStringType1 = theLink.href.substring(0, startIndex) + colMktCookiesString;
                            var newUrlLength1 = urlStringType1.length;
                            newHref = urlStringType1 + theChannelTracker.appendCookiesAfterValidation(newUrlLength1);
                        } else {
                            var urlStringType2 = urlStringType1 + theLink.href.substring(endIndex, theLink.href.length);
                            var newUrlLength2 = urlStringType2.length;
                            newHref = urlStringType1 + theChannelTracker.appendCookiesAfterValidation(newUrlLength2) + theLink.href.substring(endIndex, theLink.href.length);
                        }
                    } else {
                        var urlStringType3 = theLink.href + (theLink.href.indexOf('?') > 0 ? '&' : '?') + colMktCookiesString;
                        var newUrlLength3 = urlStringType3.length;
                        newHref = urlStringType3 + theChannelTracker.appendCookiesAfterValidation(newUrlLength3);
                    }
                    var oldText = jQuery(theLink).text();
                    jQuery(theLink).attr('href', newHref);
                    if (jQuery(theLink).text() != oldText){
                        jQuery(theLink).text(oldText);
                    }
                }
            }
        });
    };
ChannelTracker.prototype.getColCookies =
    function() {
        var cookies = "";
        jQuery(document.cookie.split(";")).each(function(i, item){
            if (jQuery.trim(item).indexOf("__col") == 0) {
                cookies += (cookies != "" ? ";" : "") + item;
            }
        });
        return jQuery.trim(cookies);
    };
ChannelTracker.prototype.appendCookiesAfterValidation =
    function(urlLen) {
        var urlLength = urlLen >= 0 ? urlLen : 0;
        if(urlLength > 2048)
            return "";
        var productCookie = escape(this.getProductCookies());
        urlLength += productCookie.length;
        if(urlLength > 2048)
            return "";
        return productCookie;
    };
ChannelTracker.prototype.getProductCookies =
    function() {
		var cookies = "";
	    var theChannelTracker = this;
	    var prodCookieNames = ["__col_first_track_"+this.productId,"__col_mkt_"+this.productId,"__col_track_"+this.productId];
	    jQuery(document.cookie.split(";")).each(function(i, item){
	        var cookie = item.split("=");
	        var cookieName = jQuery.trim(cookie[0]);
	        if(jQuery.inArray(cookieName,prodCookieNames) >= 0) {
	            cookies += (cookies != "" ? ";" : "") + item;
	        }
	    });
	    return jQuery.trim(cookies);
    };
ChannelTracker.prototype.trackVisit =
    function() {
        if ("1" == this.readColCookie("track")) {
            return;
        }
        var url = '' + window.location;
        if (url.match(/@/)) {
            jQuery.url.setUrl(url.replace(/@/g, "%40"));
        }
        var channelParams;
        if (typeof jQuery.url.param("c_name") != 'undefined') {
            channelParams = this.channelParams("", jQuery.url.attr("query"));
        } else {
            channelParams = this.channelParams("", "c_name=direct");
        }
        var userId = jQuery.cookie('__col_visit');
        var firstSession = (typeof this.cookieValueToArray()['FIS_name'] == 'undefined');
        var port = "";
        var oldUrl = jQuery.url.attr("source");
        jQuery('script').each(function(i, item){
            if (item.src.indexOf("/marketing/api/2009/api.js") > 1 && jQuery.url.setUrl(item.src).attr("port") != null){
                port = ":" + jQuery.url.setUrl(item.src).attr("port");
            }
        });
        jQuery.url.setUrl(oldUrl);
        url = location.protocol +"//"+ this.serverName + port + this.contextPath
                      + "/api/visit"
                      + "/userid/" + userId
                      + "/domain/" + window.location.hostname
                      + "/productName/" + this.productId
                      + "/channelparams/" + this.encode(channelParams)
                      + "/firstsession/" + firstSession
                      + ".json?_method=POST&callback=?";
        var trackerThis = this;
        jQuery.getJSON(url,
            function(data) {
                this.userId = data.string;
                var opts = { path: '/', expires: 365, domain: trackerThis.subdomain};
                jQuery.cookie('__col_visit', this.userId, opts);
            });
    }
var _gaq=_gaq||[];try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1,'link':1};u.max_custom=10;u.clearVar=function(){for(var i=1;i<=u.max_custom;i++){_gaq.push([u.prefix+'_deleteCustomVar',i])}};u.domain=""||utag.loader.lh();u.prefix="";u.prefix=((u.prefix)?u.prefix+'.':'');u.ga1="blank";u.setallowlinker=false;u.inpage_linkid=false;if(u.inpage_linkid){_gaq.push(['_require','inpage_linkid','//www.google-analytics.com/plugins/ga/inpage_linkid.js'])};_gaq.push([u.prefix+'_setAccount',u.ga1]);u.anonymizeIp="true";if(u.anonymizeIp==="true"){_gaq.push(['_gat._anonymizeIp'])};_gaq.push([u.prefix+'_setDomainName',u.domain]);if(u.setallowlinker||u.domain=='none'){_gaq.push([u.prefix+'_setAllowLinker',true])};u.map={"page":"ga_pageOverride"};u.extend=[function(a,b,c,d,e,f,g){d=b['environment'];if(typeof d=='undefined')return;c=[{'g2m-dev':'UA-15986021-1'},{'g2m-prod':'UA-11422508-1'},{'g2w-dev':'UA-15986021-1'},{'g2w-prod':'UA-11422508-1'},{'g2t-dev':'UA-15986021-1'},{'g2t-prod':'UA-11422508-1'},{'g2mwt-dev':'UA-15986021-1'},{'g2mwt-prod':'UA-11422508-1'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){if(d==f){b['ga_profile']=c[e][f];m=true};};if(m)break};if(!m)b['ga_profile']='UA-27186023-1';},function(a,b){_gaq.push(['_setAccount',b.ga_profile])}];u.send=function(a,b,c,d,e,f,g){if(u.ev[a]||typeof u.ev.all!="undefined"){b.ga_events=b.ga_events||[];u.addEvent=function(v){if(typeof v.eventCategory=="undefined"||typeof v.eventAction=="undefined"){utag.DB("GA event Category or Action is not set");return;}
if(v.eventValue&&isNaN(parseInt(v.eventValue))){utag.DB("GA event Value is not a number");v.eventValue=null;}else{v.eventValue=parseInt(v.eventValue)||null;}
b.ga_events.push(v);return b.ga_events}
u.a=a;for(c=0;c<u.extend.length;c++){try{d=u.extend[c](a,b);if(d==false)return}catch(e){}};for(c in utag.loader.GV(b)){if(typeof u.map[c+":"+b[c]]!="undefined"){b[c+":"+b[c]]=b[c]}}
for(c in utag.loader.GV(b)){if(typeof u.map[c]!="undefined"){d=u.map[c].split(",");for(e=0;e<d.length;e++){if(d[e].indexOf("cvar")>-1){f=d[e].substring(4).split(".");g=parseInt(f[0]);if(g>u.max_custom){u.max_custom=g};_gaq.push([u.prefix+'_setCustomVar',g,((c.indexOf(".")>0)?(c.split("."))[1]:c),b[c],parseInt(f[1])])
}else if(d[e]=="ga_pageOverride"){_gaq.push([u.prefix+'_set',"page",b[c]]);}else if(d[e]=="ga_accountOverride"){_gaq.push([u.prefix+'_setAccount',b[c]])}
else if(d[e]=="ga_eventCategory"){b.ga_eventCat=b[c]}
else if(d[e].indexOf("ga_")==0){b[d[e]]=b[c]}
else{_gaq.push([u.prefix+"_set",d[e],b[c]]);}}}}
if(u.a=="view"){_gaq.push([u.prefix+'_trackPageview']);this.clearVar();}
if(typeof b.ga_eventCat!="undefined"){u.addEvent({eventCategory:b.ga_eventCat,eventAction:b.ga_eventAction,eventLabel:b.ga_eventLabel||null,eventValue:(typeof b.ga_eventValue!="undefined"?parseInt(b.ga_eventValue):null)});}else if(u.a=="link"&&typeof b.event_name!="undefined"){u.addEvent({eventCategory:b.event_name,eventAction:b.link_type,eventLabel:b.link_text||null});}
for(e=0;e<b.ga_events.length;e++){_gaq.push([u.prefix+"_trackEvent",b.ga_events[e].eventCategory,b.ga_events[e].eventAction,b.ga_events[e].eventLabel,b.ga_events[e].eventValue,b.ga_events[e].nonInteraction||b.ga_nonInteraction||null]);}
this.clearVar();if(b._corder){_gaq.push([u.prefix+'_addTrans',b._corder,b._cstore,(b.ga_totalOverride?b.ga_totalOverride:b._ctotal),b._ctax,b._cship,b._ccity,b._cstate,b._ccountry]);for(c=0;c<b._cprod.length;c++){if(b._cprod[c]){_gaq.push([u.prefix+'_addItem',b._corder,b._cprod[c],(typeof b._cprodname[c]!="undefined"?b._cprodname[c]:""),(typeof b._ccat[c]!="undefined"?b._ccat[c]:""),(typeof b._cprice[c]!="undefined"?b._cprice[c]:""),(typeof b._cquan[c]!="undefined"?b._cquan[c]:"1")]);}}
_gaq.push([u.prefix+'_trackTrans']);}
(function(){var id='tealium-tag-7001';if(document.getElementById(id)){return;}
var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.id=id;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('1','citrix.collaboration-prelogin-v2');}catch(e){}
try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1};u.forcessl='no';u.base_url='//dnn506yrbagrg.cloudfront.net/pages/scripts/0010/2626.js';if(u.forcessl=='yes'||location.protocol=='https:'){u.base_url='https://s3.amazonaws.com/new.cetrk.com/pages/scripts/0010/2626.js';}
u.map={};u.extend=[];u.send=function(a,b,c,d,e,f){if(u.ev[a]||typeof u.ev.all!='undefined'){u.head=document.getElementsByTagName('head')[0];u.scr=document.createElement('script');u.scr.src=u.base_url;u.head.appendChild(u.scr);}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('30','citrix.collaboration-prelogin-v2');}catch(e){}
try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1};u.src='2870544';u.type='landi745';u.cat='g2m_h249';u.multicat="";u.qty=0;u.countertype='standard';u.qsp_delim=';';u.kvp_delim='=';u.map={};u.extend=[];u.send=function(a,b){if(u.ev[a]||typeof u.ev.all!='undefined'){var c,d,e,f,g;c=[];g=[];for(d in utag.loader.GV(u.map)){if(typeof b[d]!='undefined'&&b[d]!=''){e=u.map[d].split(',');for(f=0;f<e.length;f++){if(/^(cat|multicat|type|src|cost|qty|ord)$/.test(e[f])){u[e[f]]=b[d];}else{g.push(e[f]+u.kvp_delim+encodeURIComponent(b[d]))}}}}
u.base_url='//'+u.src+'.fls.doubleclick.net/activityi;src='+u.src+';type='+u.type+';';if(u.multicat==""){u.multicat_arr=[u.cat];}else{u.multicat_arr=u.multicat.split(';');}
if(b._corder||(u.ord&&u.cost)){if(!u.qty&&typeof b._cquan!='undefined'){for(f=0;f<b._cquan.length;f++){u.qty+=parseInt(b._cquan[f]);}};if(u.qty==0){u.qty=1};c.push('qty='+(u.qty));c.push('cost='+(u.cost?u.cost:b._csubtotal));if(g.length>0)c.push(g.join(';'));c.push('ord='+(u.ord?u.ord:b._corder));}else if(u.countertype=='standard'){if(g.length>0)c.push(g.join(';'));c.push('ord='+(Math.random()*10000000000000));}else if(u.countertype=='unique'){if(g.length>0)c.push(g.join(';'));c.push('ord=1');c.push('num='+(Math.random()*10000000000000));}else{if(g.length>0)c.push(g.join(';'));c.push('ord='+(u.ord?u.ord:window.utag.data['cp.utag_main_ses_id']));}
for(f=0;f<u.multicat_arr.length;f++){d=document.createElement('iframe');d.setAttribute('id','utag_4_iframe');d.setAttribute('height','1');d.setAttribute('width','1');d.setAttribute('style','display:none');d.setAttribute('src',u.base_url+'cat='+u.multicat_arr[f]+((c.length>0)?';'+c.join(u.qsp_delim):'')+'?');document.body.appendChild(d);}}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('4','citrix.collaboration-prelogin-v2');}catch(e){}
var NTPT_IMGSRC="http://pt000164.unica.com/ntpagetag.gif";var NTPT_NOINITIALTAG=true;var NTPT_FLDS=new Object();NTPT_FLDS.lc=true;NTPT_FLDS.rf=true;NTPT_FLDS.rs=true;NTPT_FLDS.cd=true;NTPT_FLDS.ln=true;NTPT_FLDS.tz=true;NTPT_FLDS.jv=true;NTPT_FLDS.ck=true;var NTPT_MAXTAGWAIT=1.0;var NTPT_HTTPSIMGSRC='https://pt000164.unica.com/ntpagetag.gif';var NTPT_GLBLREFTOP=false;var NTPT_SET_IDCOOKIE=true;var NTPT_IDCOOKIE_NAME='UnicaNIODID';var NTPT_GLBLEXTRA='';var NTPT_IDCOOKIE_DOMAIN='';if(NTPT_IDCOOKIE_DOMAIN=='')NTPT_IDCOOKIE_DOMAIN=utag.cfg.domain;var NTPT_GLBLCOOKIES=[];var q_temp={};var q=utag.data["dom.query_string"];q.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function($0,$1,$2,$3){q_temp[$1]=$3;});q=q_temp;if(q[NTPT_IDCOOKIE_NAME]!=null){c=new Date((new Date()).getTime()+31536000000);document.cookie=NTPT_IDCOOKIE_NAME+"="+q[NTPT_IDCOOKIE_NAME]+"; path=/; domain="+utag.cfg["domain"]+"; expires="+c.toGMTString()+";";}
function OOOO000(OO0O00,O0O0O,O000OOO,OO0O00O){var O00O0="";O00O0=OO0O00+"\x3d"+escape(O0O0O)+"\x3b";if(OO0O00O)O00O0+="\x20\x64\x6f\x6d\x61\x69\x6e\x3d"+OO0O00O+"\x3b";if(O000OOO>(0x1d65+435-0x1f18)){var OOO00O=new Date();OOO00O.setTime(OOO00O.getTime()+(O000OOO*(0x9a6+2102-0xdf4)));O00O0+="\x20\x65\x78\x70\x69\x72\x65\x73\x3d"+OOO00O.toGMTString()+"\x3b";}O00O0+="\x20\x70\x61\x74\x68\x3d\x2f";document.cookie=O00O0;};function OOOO00(OO0O00){var O0O0O0O=OO0O00+"\x3d";if(document.cookie.length>(0x162f+0-0x162f)){var OO0000;OO0000=document.cookie.indexOf(O0O0O0O);if(OO0000!=-(0x106+5772-0x1791)){var OOO000;OO0000+=O0O0O0O.length;OOO000=document.cookie.indexOf("\x3b",OO0000);if(OOO000==-(0x129c+4910-0x25c9))OOO000=document.cookie.length;return unescape(document.cookie.substring(OO0000,OOO000));}else{return null;};}};function O00000O(O0OO0){var OO000O="";for(OO00O in O0OO0){if((typeof(O0OO0[OO00O])=="\x73\x74\x72\x69\x6e\x67")&&(O0OO0[OO00O]!="")){if(OO000O!="")OO000O+="\x3b";OO000O+=OO00O+"\x3d"+O0OO0[OO00O];};}return OO000O;};var O00OOO=["\x41","\x42","\x43","\x44","\x45","\x46","\x47","\x48","\x49","\x4a","\x4b","\x4c","\x4d","\x4e","\x4f","\x50","\x51","\x52","\x53","\x54","\x55","\x56","\x57","\x58","\x59","\x5a","\x61","\x62","\x63","\x64","\x65","\x66","\x67","\x68","\x69","\x6a","\x6b","\x6c","\x6d","\x6e","\x6f","\x70","\x71","\x72","\x73","\x74","\x75","\x76","\x77","\x78","\x79","\x7a","\x30","\x31","\x32","\x33","\x34","\x35","\x36","\x37","\x38","\x39"];function OOOOOO0(O00000){if(O00000<(0x41+9084-0x237f)){return O00OOO[O00000];}else{return(OOOOOO0(Math.floor(O00000/(0x1163+644-0x13a9)))+O00OOO[O00000%(0x1c5c+1570-0x2240)]);}};function O0O000O(){var OO0OO0O="";var OOOOO00=new Date();for(OOO0O0O=(0x13b0+769-0x16b1);OOO0O0O<(0x26f+3070-0xe62);OOO0O0O++){OO0OO0O+=O00OOO[Math.round(Math.random()*(0xb62+1003-0xf10))];}return(OO0OO0O+"\x2d"+OOOOOO0(OOOOO00.getTime()));};function OO0OO(O0O0000,OOO0O00){return(eval("\x74\x79\x70\x65\x6f\x66\x20"+O0O0000+"\x20\x21\x3d\x20\x22\x75\x6e\x64\x65\x66\x69\x6e\x65\x64\x22")?eval(O0O0000):OOO0O00);};function OO0O000(O00OOO0,O0O000){return(O00OOO0+(((O00OOO0=='')||((O0O000=='')||(O0O000.substring((0x1dc9+2039-0x25c0),(0x1442+4474-0x25bb))=="\x26")))?'':"\x26")+O0O000);};function O000O00(){var O0O00O=new Date();return(O0O00O.getTime()+"\x2e"+Math.floor(Math.random()*(0xed9+1573-0x1116)));};function O00OO(OO0O00,OO0OO00){OOO00[OO0O00]=OO0OO00.toString();};function O0OO0O0(OO0O00){OOO00[OO0O00]='';};function OOO0000(O000O){var O0OO0O='',OO00O,O0O0O;OO00OO(OO0OO("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x45\x58\x54\x52\x41",''));if(!LnkLck)OO00OO(OO0OO("\x4e\x54\x50\x54\x5f\x50\x47\x45\x58\x54\x52\x41",''));OO00OO(O000O);for(OO00O in OOO00){O0O0O=OOO00[OO00O];if(typeof(O0O0O)=="\x73\x74\x72\x69\x6e\x67"){if(O0O0O&&(O0O0O!=''))O0OO0O=OO0O000(O0OO0O,(OO00O+"\x3d"+(self.encodeURIComponent?encodeURIComponent(O0O0O):escape(O0O0O))));};}return O0OO0O;};function O000000(){var OO00O;OOOOO0.OOO00=new Array();for(OO00O in OOO00)OOOOO0.OOO00[OO00O]=OOO00[OO00O];};function OOO00OO(){var OO00O;OOO00=new Array();for(OO00O in OOOOO0.OOO00)OOO00[OO00O]=OOOOO0.OOO00[OO00O];};function OO0O0OO(O00O00,O0OOOO0,O000OO){if(OOOO0[O00O00]!=null){var O000O0=new Function(O0OOOO0);OOOO0[O00O00].onload=O000O0;OOOO0[O00O00].onerror=O000O0;OOOO0[O00O00].onabort=O000O0;}setTimeout(O0OOOO0,(O000OO*(0x5f3+3206-0xe91)));};function O0O00O0(O0OOOO,OO0O0O){if(O0OOOO=='')return;O0000=((O0000+(0x1312+1405-0x188e))%OOOO0.length);if(OOOO0[O0000]==null)OOOO0[O0000]=new Image((0x1005+4276-0x20b8),(0x1208+715-0x14d2));OOOO0[O0000].src=O0OOOO+"\x3f"+OO0O0O;};function OOOOO0O(O000O){var O0OOOO;var OO0O0O;if((O00O00O!='')&&(document.location.protocol=="\x68\x74\x74\x70\x73\x3a"))O0OOOO=O00O00O;else O0OOOO=O0000OO;OO0O0O=OOO0000(O000O);O0O00O0(O0OOOO,OO0O0O);OOO00OO();};function OO00OO(O000O){var OO00O0;var O00O0O;if(!O000O)return;O000O=O000O.toString();if(O000O=='')return;OO00O0=O000O.split("\x26");for(O00O0O=(0xdc+1230-0x5aa);O00O0O<OO00O0.length;O00O0O++){var OOO0O0=OO00O0[O00O0O].split("\x3d");if(OOO0O0.length==(0x83d+4370-0x194d))O00OO(OOO0O0[(0x1240+5137-0x2651)],(self.decodeURIComponent?decodeURIComponent(OOO0O0[(0xa7d+3816-0x1964)]):unescape(OOO0O0[(0xd8f+2979-0x1931)])));}};function O0O0OO(O000O){O00OO("\x65\x74\x73",O000O00());OOOOO0O(O000O);return true;};function O00OO0O(OOOOO,O000O,O000OO){var O0OOO;if(!OOOOO||!OOOOO.href)return true;if(LnkLck)return false;LnkLck=OOOOO;if(OO000.lc)O00OO("\x6c\x63",OOOOO.href);if(OO000.rf){if(!O0OO000||!top||!top.document)O00OO("\x72\x66",document.location);}O0O0OO(O000O);if(O000OO)O0OOO=O000OO;else O0OOO=NTPT_MAXTAGWAIT;if(O0OOO>(0x659+6874-0x2133)){var OOOOOO;if(OOOOO.click){OOOOO.tmpclck=OOOOO.onclick;OOOOO.onclick=null;OOOOOO="\x69\x66\x20\x28\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x29\x20\x7b\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x63\x6c\x69\x63\x6b\x28\x29\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x6f\x6e\x63\x6c\x69\x63\x6b\x20\x3d\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x74\x6d\x70\x63\x6c\x63\x6b\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d";}else OOOOOO="\x69\x66\x20\x28\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x29\x20\x7b\x20\x77\x69\x6e\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x68\x72\x65\x66\x20\x3d\x20\x22"+OOOOO.href+"\x22\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d";OO0O0OO(O0000,OOOOOO,O0OOO);return false;}LnkLck=null;return true;};function O000OO0(OO0OOO,O000O,O000OO){var O0OOO;if(!OO0OOO||!OO0OOO.submit)return true;if(FrmLck)return false;FrmLck=OO0OOO;O0O0OO(O000O);if(O000OO)O0OOO=O000OO;else O0OOO=NTPT_MAXTAGWAIT;if(O0OOO>(0x1497+4406-0x25cd)){OO0OOO.tmpsbmt=OO0OOO.onsubmit;OO0OOO.onsubmit=null;OO0O0OO(O0000,"\x69\x66\x20\x28\x20\x46\x72\x6d\x4c\x63\x6b\x20\x29\x20\x7b\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x73\x75\x62\x6d\x69\x74\x28\x29\x3b\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x6f\x6e\x73\x75\x62\x6d\x69\x74\x20\x3d\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x74\x6d\x70\x73\x62\x6d\x74\x3b\x20\x46\x72\x6d\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d",O0OOO);return false;}FrmLck=null;return true;};var O0000OO=NTPT_IMGSRC;var OO000=NTPT_FLDS;var O00OO0=OO0OO("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x43\x4f\x4f\x4b\x49\x45\x53",null);var OOOO0O=OO0OO("\x4e\x54\x50\x54\x5f\x50\x47\x43\x4f\x4f\x4b\x49\x45\x53",null);var OOO00O0=OO0OO("\x4e\x54\x50\x54\x5f\x53\x45\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45",false);var OO0OO0=OO0OO("\x4e\x54\x50\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45\x5f\x4e\x41\x4d\x45","\x53\x61\x6e\x65\x49\x44");var OO00O00=OO0OO("\x4e\x54\x50\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45\x5f\x44\x4f\x4d\x41\x49\x4e",null);var OO0OOOO=OO0OO("\x4e\x54\x50\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45\x5f\x45\x58\x50\x49\x52\x45",155520000);var O00O00O=OO0OO("\x4e\x54\x50\x54\x5f\x48\x54\x54\x50\x53\x49\x4d\x47\x53\x52\x43",'');var O0OO000=OO0OO("\x4e\x54\x50\x54\x5f\x50\x47\x52\x45\x46\x54\x4f\x50",OO0OO("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x52\x45\x46\x54\x4f\x50",false));var OO00000=OO0OO("\x4e\x54\x50\x54\x5f\x4e\x4f\x49\x4e\x49\x54\x49\x41\x4c\x54\x41\x47",false);var ntptAddPair=O00OO;var ntptDropPair=O0OO0O0;var ntptEventTag=O0O0OO;var ntptLinkTag=O00OO0O;var ntptSubmitTag=O000OO0;var OOO00=new Array();var OOOOO0=new Object();var OOOO0=Array((0x317+3540-0x10e1));var O0000;for(O0000=(0x1584+3590-0x238a);O0000<OOOO0.length;O0000++)OOOO0[O0000]=null;var LnkLck=null;var FrmLck=null;O00OO("\x6a\x73","\x31");O00OO("\x74\x73",O000O00());if(OO000.lc)O00OO("\x6c\x63",document.location);if(OO000.rf){var OOO0OO;if(O0OO000&&top&&top.document)OOO0OO=top.document.referrer;else OOO0OO=document.referrer;O00OO("\x72\x66",OOO0OO);}if(self.screen){if(OO000.rs)O00OO("\x72\x73",self.screen.width+"\x78"+self.screen.height);if(OO000.cd)O00OO("\x63\x64",self.screen.colorDepth);}if(OO000.ln){var OOO0O;if(navigator.language)OOO0O=navigator.language;else if(navigator.userLanguage)OOO0O=navigator.userLanguage;else OOO0O='';if(OOO0O.length>(0x462+2203-0xcfb))OOO0O=OOO0O.substring((0xe45+3555-0x1c28),(0x186+8395-0x224f));OOO0O=OOO0O.toLowerCase();O00OO("\x6c\x6e",OOO0O);}if(OO000.tz){var OO0O0;var O0O00O=new Date();var O0O00=O0O00O.getTimezoneOffset();var O0OO00;OO0O0="\x47\x4d\x54";if(O0O00!=(0x1214+4348-0x2310)){if(O0O00>(0x773+6772-0x21e7))OO0O0+="\x20\x2d";else OO0O0+="\x20\x2b";O0O00=Math.abs(O0O00);O0OO00=Math.floor(O0O00/(0x878+3391-0x157b));O0O00-=O0OO00*(0xc3b+4046-0x1bcd);if(O0OO00<(0x13e6+969-0x17a5))OO0O0+="\x30";OO0O0+=O0OO00+"\x3a";if(O0O00<(0xba1+208-0xc67))OO0O0+="\x30";OO0O0+=O0O00;}O00OO("\x74\x7a",OO0O0);}if(OO000.jv){var O0000O;if(navigator.javaEnabled())O0000O="\x31";else O0000O="\x30";O00OO("\x6a\x76",O0000O);}var O0OO0=new Array();var O00O0OO=false;if(OO000.ck){var O0O0O0;var O00O0,O0OOO0;if(O00OO0){for(O0O0O0=(0x87a+7306-0x2504);O0O0O0<O00OO0.length;O0O0O0++){O0OO0[O00OO0[O0O0O0]]="";};}if(OOOO0O){for(O0O0O0=(0x1b2a+931-0x1ecd);O0O0O0<OOOO0O.length;O0O0O0++){O0OO0[OOOO0O[O0O0O0]]="";};}for(OO00O in O0OO0){O00O0=OOOO00(OO00O);if(O00O0){O0OO0[OO00O]=O00O0;};}if(OOO00O0){O00O0=OOOO00(OO0OO0);if(O00O0){O0OO0[OO0OO0]=O00O0;O00O0OO=true;};}O0OOO0=O00000O(O0OO0);if(O0OOO0!="")O00OO("\x63\x6b",O0OOO0);}O000000();if(!OO00000)OOOOO0O('');if(OOO00O0&&!O00O0OO){var O00O0=OOOO00(OO0OO0);if(!O00O0){O00O0=O0O000O();OOOO000(OO0OO0,O00O0,OO0OOOO,OO00O00);if(OO000.ck&&OOOO00(OO0OO0)){O0OO0[OO0OO0]=O00O0;var O0OOO0=O00000O(O0OO0);if(O0OOO0!=""){O00OO("\x63\x6b",O0OOO0);O000000();};};};}
try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1,'link':1};u.map={"unica_profile":"site","page":"page","website_country":"website_country","product":"product","section":"section","content_type":"content_type","template":"template","pageset":"pageset","conversion_type":"conversion_type","conversion_currency":"conversion_currency","plan":"plan","plan_tier":"plan_tier","language":"language","sub_section":"sub_section","lc":"lc","locale":"locale","ab_test":"ab_test","ab_branch":"ab_branch","c_cell_f":"c_cell_f","c_cell_l":"c_cell_l","c_cmp_f":"c_cmp_f","c_cmp_l":"c_cmp_l","c_date_f":"c_date_f","c_date_l":"c_date_l","c_kwd_f":"c_kwd_f","c_kwd_l":"c_kwd_l","c_mark_f":"c_mark_f","c_mark_l":"c_mark_l","c_name_f":"c_name_f","c_name_l":"c_name_l","c_pals_f":"c_pals_f","c_pals_l":"c_pals_l","c_prod_f":"c_prod_f","c_prod_l":"c_prod_l","c_regtype_f":"c_regtype_f","c_regtype_l":"c_regtype_l","c_test_f":"c_test_f","c_test_l":"c_test_l"};u.extend=[function(a,b){var vFlag=utag.loader.RC("NTPT_VFLAG");if(vFlag!="1"){document.cookie="NTPT_VFLAG=1; path=/; domain="+utag.cfg['domain']+"; expires=Thu, 31 Dec 2099 00:00:00 GMT;";ntptDropPair("ck");};},function(a,b,c,d,e,f,g){d=b['environment'];if(typeof d=='undefined')return;c=[{'g2m-dev':'test'},{'g2m-prod':'gotomeeting'},{'g2w-dev':'test'},{'g2w-prod':'gotomeeting'},{'g2t-dev':'test'},{'g2t-prod':'gotomeeting'},{'g2mwt-dev':'test'},{'g2mwt-prod':'gotomeeting'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){if(d==f){b['unica_profile']=c[e][f];m=true};};if(m)break};if(!m)b['unica_profile']='';},function(a,b){if(typeof b['page']!='undefined'){try{b['lc']=document.URL+((document.URL.indexOf('?')>0)?'&':'?')+'ni_title='+b.page}catch(e){}}},function(a,b){if(b.unica_profile){NTPT_GLBLEXTRA="site="+b.unica_profile;}}];u.send=function(a,b,c,d,e,f){if(u.ev[a]||typeof u.ev.all!="undefined"){for(c=0;c<u.extend.length;c++){try{d=u.extend[c](a,b);if(d==false)return}catch(e){}};for(c in utag.loader.GV(b)){if(typeof u.map[c+":"+b[c]]!="undefined"){b[c+":"+b[c]]=b[c]}}
for(c in utag.loader.GV(b)){if(typeof u.map[c]!="undefined"&&b[c]!="undefined"&&b[c]!=""){d=u.map[c].split(",");for(e=0;e<d.length;e++){ntptAddPair(d[e],b[c]);}}}
if(a=="view"){ntptEventTag((a=="view")?"":a);}else if(a=="link"){c=[];if(typeof b.link_type!="undefined"&&b.link_type){c.push("lk=1");c.push("ev="+b.event_name);c.push("link_type="+b.link_type);c.push("link_text="+b.link_text);c.push("link_url="+b.link_url);}
ntptEventTag(c.join('&'));}}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('2','citrix.collaboration-prelogin-v2');}catch(e){}
try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1};u.qsp_delim='&';u.kvp_delim='=';u.ids='566194';u.base_url='//ad.yieldmanager.com/pixel?';u.map={};u.extend=[];u.send=function(a,b,c,d,e,f){if(u.ev[a]||typeof u.ev.all!='undefined'){c=[];for(d in utag.loader.GV(u.map)){if(typeof b[d]!='undefined'&&b[d]!=''){e=u.map[d].split(',');for(f=0;f<e.length;f++){c.push(e[f]+u.kvp_delim+encodeURIComponent(b[d]))}}}
u.ida=u.ids.split(',');for(f=0;f<u.ida.length;f++){c.push('id='+u.ida[f]);};c.push('t=2');u.img=new Image();u.img.src=u.base_url+c.join(u.qsp_delim);}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('31','citrix.collaboration-prelogin-v2');}catch(e){}
try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1};u.src='3046203';u.type='landi084';u.cat='g2mc_828';u.multicat="";u.qty=0;u.countertype='standard';u.qsp_delim=';';u.kvp_delim='=';u.map={};u.extend=[];u.send=function(a,b){if(u.ev[a]||typeof u.ev.all!='undefined'){var c,d,e,f,g;c=[];g=[];for(d in utag.loader.GV(u.map)){if(typeof b[d]!='undefined'&&b[d]!=''){e=u.map[d].split(',');for(f=0;f<e.length;f++){if(/^(cat|multicat|type|src|cost|qty|ord)$/.test(e[f])){u[e[f]]=b[d];}else{g.push(e[f]+u.kvp_delim+encodeURIComponent(b[d]))}}}}
u.base_url='//'+u.src+'.fls.doubleclick.net/activityi;src='+u.src+';type='+u.type+';';if(u.multicat==""){u.multicat_arr=[u.cat];}else{u.multicat_arr=u.multicat.split(';');}
if(b._corder||(u.ord&&u.cost)){if(!u.qty&&typeof b._cquan!='undefined'){for(f=0;f<b._cquan.length;f++){u.qty+=parseInt(b._cquan[f]);}};if(u.qty==0){u.qty=1};c.push('qty='+(u.qty));c.push('cost='+(u.cost?u.cost:b._csubtotal));if(g.length>0)c.push(g.join(';'));c.push('ord='+(u.ord?u.ord:b._corder));}else if(u.countertype=='standard'){if(g.length>0)c.push(g.join(';'));c.push('ord='+(Math.random()*10000000000000));}else if(u.countertype=='unique'){if(g.length>0)c.push(g.join(';'));c.push('ord=1');c.push('num='+(Math.random()*10000000000000));}else{if(g.length>0)c.push(g.join(';'));c.push('ord='+(u.ord?u.ord:window.utag.data['cp.utag_main_ses_id']));}
for(f=0;f<u.multicat_arr.length;f++){d=document.createElement('iframe');d.setAttribute('id','utag_23_iframe');d.setAttribute('height','1');d.setAttribute('width','1');d.setAttribute('style','display:none');d.setAttribute('src',u.base_url+'cat='+u.multicat_arr[f]+((c.length>0)?';'+c.join(u.qsp_delim):'')+'?');document.body.appendChild(d);}}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('23','citrix.collaboration-prelogin-v2');}catch(e){}
var _mTrack=_mTrack||[];try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1};u.convType="";u.affiliation="";u.category="";u.clientid="l3kk1yxn00";u.base_url="//tracker.marinsm.com/tracker/async/"+u.clientid+".js";u.map={};u.extend=[];u.send=function(a,b,c,d,e,f){if(u.ev[a]||typeof u.ev.all!="undefined"){for(d in utag.loader.GV(u.map)){if(typeof b[d]!="undefined"&&b[d]!=""){e=u.map[d].split(",");for(f=0;f<e.length;f++){u[e[f]]=b[d];}}}
u.orderId=u.orderId||b._corder;if(u.convType||u.orderId){u.currency=(u.currency?u.currency:b._ccurrency);u.convType=(u.convType?u.convType:b._ctype);u.product=u.product||b._cprod.slice(0);u.price=u.price||b._cprice.slice(0);u.quantity=u.quantity||b._cquan.slice(0);u.category=u.category||b._ccat.slice(0);u.total=u.total||b._ctotal;u.tax=u.tax||b._ctax;u.shipping=u.shipping||b._cship;u.city=u.city||b._ccity;u.state=u.state||b._cstate;u.country=u.country||b._ccountry;u.currency=u.currency||b._ccurrency;u.items=[];for(d=0;d<b._cprod.length;d++){u.items.push({orderId:((u.orderId instanceof Array)?u.orderId[d]:u.orderId),convType:((u.convType instanceof Array)?u.convType[d]:u.convType),product:u.product[d],price:u.price[d],category:((u.category instanceof Array)?u.category[d]:u.category),quantity:u.quantity[d]});}
if(u.items.length==0){u.items.push({orderId:u.orderId,convType:u.convType,product:"",price:"",category:u.category,quantity:""});}
_mTrack.push(['addTrans',{orderId:((u.orderId instanceof Array)?"":u.orderId),total:u.total,tax:u.tax,affiliation:u.affiliation,shipping:u.shipping,city:u.city,state:u.state,country:u.country,currency:u.currency,items:u.items}]);_mTrack.push(['processOrders']);}else{_mTrack.push(['trackPage']);}
u.s=document.getElementsByTagName("script")[0];u.scr=document.createElement("script");u.scr.type="text/javascript";u.scr.src=u.base_url;u.s.parentNode.insertBefore(u.scr,u.s);}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('53','citrix.collaboration-prelogin-v2');}catch(e){}
try{if(!utag.libloader){utag.libloader=function(src,handler,a,b){a=document;b=a.createElement('script');b.language='javascript';b.type='text/javascript';b.src=src;if(typeof handler=='function'){b.handlerFlag=0;b.onreadystatechange=function(){if((this.readyState=='complete'||this.readyState=='loaded')&&!b.handlerFlag){b.handlerFlag=1;handler()}};b.onload=function(){if(!b.handlerFlag){b.handlerFlag=1;handler()}};a.getElementsByTagName('head')[0].appendChild(b)}}};(function(id,loader,u){u=utag.o[loader].sender[id]={};u.ev={'view':1};u.map={};u.extend=[];u.send=function(a,b,c,d,e,f){if(u.ev[a]||typeof u.ev.all!="undefined"){var data={};for(d in utag.loader.GV(u.map)){if(typeof b[d]!='undefined'){e=u.map[d].split(',');for(f=0;f<e.length;f++){data[e[f]]=b[d]}}}
}
var dbase=new dbaseObj();if(dbase.shouldItRun()){utag.libloader("https://dkj2m377b0yzw.cloudfront.net/clients/javascript/demandbase-1.0.0-min.js",function(){var demandbase_parse=function(company){if(company){utag_data.db_information_level=company.information_level||'';utag_data.db_audience=company.audience||'';utag_data.db_company_name=company.company_name||'';utag_data.db_audience_segment=company.audience_segment||'';utag_data.db_industry=company.industry||'';utag_data.db_sub_industry=company.sub_industry||'';utag_data.db_fortune_1000=company.fortune_1000||'';utag_data.db_forbes_2000=company.forbes_2000||'';utag_data.db_employee_range=company.employee_range||'';utag_data.db_revenue_range=company.revenue_range||'';utag_data.db_annual_sales=company.annual_sales||'';utag_data.db_country_name=company.country_name||'';utag_data.db_primary_sic=company.primary_sic||'';dbase.fireEvt("db_information_level="+utag_data.db_information_level+"&db_audience="+utag_data.db_audience+"&db_company_name="+utag_data.db_company_name+"&db_audience_segment="+utag_data.db_audience_segment+"&db_industry="+utag_data.db_industry+"&db_sub_industry="+utag_data.db_sub_industry+"&db_fortune_1000="+utag_data.db_fortune_1000+"&db_forbes_2000="+utag_data.db_forbes_2000+"&db_employee_range="+utag_data.db_employee_range+"&db_revenue_range="+utag_data.db_revenue_range+"&db_annual_sales="+utag_data.db_annual_sales+"&db_country_name="+utag_data.db_country_name+"&db_primary_sic="+utag_data.db_primary_sic);}}
var db_client=new DemandbaseClient("a032719f93e8a64b4cca2243ec827192631ab163");db_client.ip(demandbase_parse);});}};try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('55','citrix.collaboration-prelogin-v2');}catch(e){}
function dbaseObj(){var oC=undefined;var bLv=false;var bFr=false;var sCkyNm='dbgetflag';var dCkyTm=new Date((new Date()).getTime()+60*60*1000);var sDom=window.location.hostname;var sDomRoot='';var sParams='';var uLC=document.URL+((document.URL.indexOf('?')>0)?'&':'?')+'ni_title='+utag_data.page;var lvChk=function(){if((utag_data.environment&&utag_data.environment.match(/\-prod$/))||typeof getCky('dbgettest')!='undefined')bLv=true;};var getRootDOM=function(){var sD=sDom;var aD=sD.split('.');var iDC=aD.length-1;var aT=[];for(var i=iDC;i>0;i--){aT.unshift(aD[i]);if(aD[i].length>=4){sD=aT.join('.');break;}}
sDomRoot=sD;};var getCky=function(sV){var rtn=undefined;var cky=document.cookie.split(";");for(var i=0;i<cky.length;i++)if(cky[i].indexOf(sV)!=-1)rtn=cky[i].split('=')[1];return rtn;};var setCky=function(sV){document.cookie=sCkyNm+'='+sV+';expires='+dCkyTm.toGMTString()+';path=/;domain='+sDomRoot;};this.shouldItRun=function(){if(!bLv||!bFr)return false;else return true;};this.fireEvt=function(sP){if(bLv&&bFr&&sP!=''&&typeof ntptEventTag=='function')ntptEventTag('lc='+encodeURIComponent(uLC)+'&ev=demandbase&evdetail=parse&'+sP);};var init=function(){lvChk();getRootDOM();oC=getCky(sCkyNm);if(typeof oC=='undefined'){bFr=true;setCky(1);}else{setCky(oC);}};init();}
window.GoogleAnalyticsObject="";if(window.GoogleAnalyticsObject==""){window.GoogleAnalyticsObject="ga"};window[window.GoogleAnalyticsObject]=window[window.GoogleAnalyticsObject]||function(){(window[window.GoogleAnalyticsObject].q=window[window.GoogleAnalyticsObject].q||[]).push(arguments);};try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1,'link':1};u.o=window[window.GoogleAnalyticsObject];u.cookieDomain=""||utag.loader.lh();u.created=false;u.name="global";u.account="blank";u.anonymizeIp=("true"==="true"?true:false);u.allowLinker=true;u.all=function(e,o,v){for(var i=0;i<u.account.length;i++){var t=(u.name[i]?u.name[i]+".":"");if(e=="set"||e=="require"){u.o(t+e,o,v)}else{u.o(t+e,o);}}}
u.map={"gua_profile_global":"account","page":"page","gua_crossDomainTrack":"crossDomainTrack","c_name_l":"campaignSource","c_mark_l":"campaignMedium","c_cell_l":"campaignName","c_pals_l":"campaignContent","c_kwd_l":"campaignKeyword","product":"dimension1","locale":"dimension2","section":"dimension3","sub_section":"dimension4"};u.extend=[function(a,b){if(1){b['gua_crossDomainTrack']='citrixonline.com, cdn.citrixonline.com'}},function(a,b,c,d,e,f,g){d=b['environment'];if(typeof d=='undefined')return;c=[{'g2(m|w|t|mwt)-dev':'UA-43827614-3'},{'g2(m|w|t|mwt)-prod':'UA-2429794-36'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){g=new RegExp(f,'i');if(g.test(d)){b['gua_profile_global']=c[e][f];m=true};};if(m)break};if(!m)b['gua_profile_global']='UA-43827614-4';}];u.send=function(a,b){if(u.ev[a]||typeof u.ev.all!="undefined"){u.o=window[window.GoogleAnalyticsObject];b.ga_events=b.ga_events||[];u.addEvent=function(v){if(typeof v.eventCategory=="undefined"||typeof v.eventAction=="undefined"){utag.DB("GA event Category or Action is not set");return;}
if(v.eventValue&&isNaN(parseInt(v.eventValue))){utag.DB("GA event Value is not a number");v.eventValue=null;}else{v.eventValue=parseInt(v.eventValue)||null;}
b.ga_events.push(v);}
u.a=a;for(c=0;c<u.extend.length;c++){try{d=u.extend[c](a,b);if(d==false)return}catch(e){}};var c,d,e,f,g;for(d in utag.loader.GV(u.map)){if(typeof b[d]!="undefined"&&b[d]!=""){e=u.map[d].split(",");for(f=0;f<e.length;f++){u[e[f]]=b[d];}}}
if(typeof u.account=="string"){u.account=u.account.replace(/\s/g,"").split(",")};if(typeof u.name=="string"){u.name=u.name.replace(/\s/g,"").split(",")};if(u.created==false){u.created=true;for(f=0;f<u.account.length;f++){c=new Object();c.cookieDomain=u.cookieDomain;if(u.cookieExpires||u.cookieExpires==="0"){c.cookieExpires=parseInt(u.cookieExpires)};if(u.legacyCookieDomain){c.legacyCookieDomain=u.legacyCookieDomain};c.allowLinker=u.allowLinker;if(typeof u.name[f]!="undefined"&&u.name[f]!=""){c.name=u.name[f]};u.o("create",u.account[f],c);}}
if(u.crossDomainTrack&&typeof u.crossDomainTrack=='string'&&u.crossDomainTrack.length>3){u.all('require','linker');u.crossDomainTrack=u.crossDomainTrack.split(',');u.all('linker:autoLink',u.crossDomainTrack);};if(u.anonymizeIp){u.all("set",'anonymizeIp',true)};if(u.uid){u.all("set","&uid",u.uid)};if(u.page){u.all("set","page",u.page)};if(u.title){u.all("set","title",u.title)};if(u.nonInteraction){u.all("set","nonInteraction",true)};if(u.campaignName){u.all("set","campaignName",u.campaignName)};if(u.campaignSource){u.all("set","campaignSource",u.campaignSource)};if(u.campaignMedium){u.all("set","campaignMedium",u.campaignMedium)};if(u.campaignContent){u.all("set","campaignContent",u.campaignContent)};if(u.campaignKeyword){u.all("set","campaignKeyword",u.campaignKeyword)};for(d in utag.loader.GV(u)){if(d.indexOf("metric")==0||d.indexOf("dimension")==0){u.all("set",d,u[d]);}}
if(u.a=="view"){g={};g.hitType="pageview";u.all("send",g);u.id=(u.id?u.id:b._corder);if(u.id&&!(u.id instanceof Array)){u.all("require","ecommerce","ecommerce.js");g={};g.id=u.id;g.affiliation=(u.affiliation?u.affiliation:b._cstore);g.revenue=(u.revenue?u.revenue:b._ctotal);g.shipping=(u.shipping?u.shipping:b._cship);g.tax=(u.tax?u.tax:b._ctax);u.all('ecommerce:addTransaction',g);for(f=0;f<b._cprod.length;f++){g={};g.id=u.id;g.sku=b._cprod[f];g.name=(b._cprodname[f]?b._cprodname[f]:b._cprod[f]);g.category=(b._ccat[f]?b._ccat[f]:"");g.price=(b._cprice[f]?b._cprice[f]:"1.00");g.quantity=(b._cquan[f]?b._cquan[f]:"1");u.all('ecommerce:addItem',g);}
u.all('ecommerce:send');}else if(u.id instanceof Array&&u.id.length>0){u.all("require","ecommerce","ecommerce.js");var lastindex=0;for(f=0;f<u.id.length;f++){if(f==u.id.length-1||(u.id[f]!=u.id[f+1])){g={};g.id=u.id[f];g.affiliation=(u.affiliation&&typeof u.affiliation[f]!="undefined"?u.affiliation[f]:b._cstore);g.revenue=(u.revenue&&typeof u.revenue[f]!="undefined"?u.revenue[f]:b._ctotal);g.shipping=(u.shipping&&typeof u.shipping[f]!="undefined"?u.shipping[f]:b._cship);g.tax=(u.tax&&typeof u.tax[f]!="undefined"?u.tax[f]:b._ctax);u.all('ecommerce:addTransaction',g);for(e=lastindex;e<f+1;e++){g={};g.id=u.id[f];g.sku=b._cprod[e];g.name=(b._cprodname[e]?b._cprodname[e]:b._cprod[e]);g.category=(b._ccat[e]?b._ccat[e]:"");g.price=(b._cprice[e]?b._cprice[e]:"1.00");g.quantity=(b._cquan[e]?b._cquan[e]:"1");u.all('ecommerce:addItem',g);}
lastindex=f+1;}}
u.all('ecommerce:send');}}
if(u.eventCategory&&u.eventAction){g={};g.hitType="event";g.eventCategory=u.eventCategory;g.eventAction=u.eventAction;if(u.eventLabel){g.eventLabel=u.eventLabel};if(typeof u.eventValue!="undefined"){g.eventValue=u.eventValue};u.all("send",g);}
for(e=0;e<b.ga_events.length;e++){g={};g.hitType="event";g.eventCategory=b.ga_events[e].eventCategory;g.eventAction=b.ga_events[e].eventAction;g.eventLabel=b.ga_events[e].eventLabel;g.eventValue=b.ga_events[e].eventValue;u.all("send",g);}
if(u.socialNetwork&&u.socialAction&&u.socialTarget){g={};g.hitType="social";g.socialNetwork=u.socialNetwork;g.socialAction=u.socialAction;g.socialTarget=u.socialTarget;u.all("send",g);}
if(u.timingCategory&&u.timingVar&&u.timingValue){g={};g.hitType="timing";g.timingCategory=u.timingCategory;g.timingVar=u.timingVar;g.timingValue=u.timingValue;g.timingLabel=u.timingLabel||"";u.all("send",g);}
if(u["ga-disable"]){window["ga-disable-"+u["ga-disable"]]=true};(function(){var id='tealium-tag-7110';if(document.getElementById(id)){return;}
u.o.l=1*new Date();var e=document.createElement('script');e.async=true;e.id=id;e.src='//www.google-analytics.com/analytics.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(e,s);})();}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('60','citrix.collaboration-prelogin-v2');}catch(e){}
window.GoogleAnalyticsObject="";if(window.GoogleAnalyticsObject==""){window.GoogleAnalyticsObject="ga"};window[window.GoogleAnalyticsObject]=window[window.GoogleAnalyticsObject]||function(){(window[window.GoogleAnalyticsObject].q=window[window.GoogleAnalyticsObject].q||[]).push(arguments);};try{(function(id,loader,u){try{u=utag.o[loader].sender[id]={}}catch(e){u=utag.sender[id]};u.ev={'view':1,'link':1};u.o=window[window.GoogleAnalyticsObject];u.cookieDomain=""||utag.loader.lh();u.created=false;u.name="gua_na";u.account="blank";u.anonymizeIp=("true"==="true"?true:false);u.allowLinker=true;u.all=function(e,o,v){for(var i=0;i<u.account.length;i++){var t=(u.name[i]?u.name[i]+".":"");if(e=="set"||e=="require"){u.o(t+e,o,v)}else{u.o(t+e,o);}}}
u.map={"gua_profile_na":"account","page":"page","gua_crossDomainTrack":"crossDomainTrack","c_name_l":"campaignSource","c_mark_l":"campaignMedium","c_cell_l":"campaignName","c_pals_l":"campaignContent","c_kwd_l":"campaignKeyword","product":"dimension1","locale":"dimension2","section":"dimension3","sub_section":"dimension4"};u.extend=[function(a,b,c,d,e,f,g){d=b['environment'];if(typeof d=='undefined')return;c=[{'g2(m|w|t|mwt)-dev':'UA-43827614-1'},{'g2(m|w|t|mwt)-prod':'UA-2429794-37'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){g=new RegExp(f,'i');if(g.test(d)){b['gua_profile_na']=c[e][f];m=true};};if(m)break};if(!m)b['gua_profile_na']='';}];u.send=function(a,b){if(u.ev[a]||typeof u.ev.all!="undefined"){u.o=window[window.GoogleAnalyticsObject];b.ga_events=b.ga_events||[];u.addEvent=function(v){if(typeof v.eventCategory=="undefined"||typeof v.eventAction=="undefined"){utag.DB("GA event Category or Action is not set");return;}
if(v.eventValue&&isNaN(parseInt(v.eventValue))){utag.DB("GA event Value is not a number");v.eventValue=null;}else{v.eventValue=parseInt(v.eventValue)||null;}
b.ga_events.push(v);}
u.a=a;for(c=0;c<u.extend.length;c++){try{d=u.extend[c](a,b);if(d==false)return}catch(e){}};var c,d,e,f,g;for(d in utag.loader.GV(u.map)){if(typeof b[d]!="undefined"&&b[d]!=""){e=u.map[d].split(",");for(f=0;f<e.length;f++){u[e[f]]=b[d];}}}
if(typeof u.account=="string"){u.account=u.account.replace(/\s/g,"").split(",")};if(typeof u.name=="string"){u.name=u.name.replace(/\s/g,"").split(",")};if(u.created==false){u.created=true;for(f=0;f<u.account.length;f++){c=new Object();c.cookieDomain=u.cookieDomain;if(u.cookieExpires||u.cookieExpires==="0"){c.cookieExpires=parseInt(u.cookieExpires)};if(u.legacyCookieDomain){c.legacyCookieDomain=u.legacyCookieDomain};c.allowLinker=u.allowLinker;if(typeof u.name[f]!="undefined"&&u.name[f]!=""){c.name=u.name[f]};u.o("create",u.account[f],c);}}
if(u.crossDomainTrack&&typeof u.crossDomainTrack=='string'&&u.crossDomainTrack.length>3){u.all('require','linker');u.crossDomainTrack=u.crossDomainTrack.split(',');u.all('linker:autoLink',u.crossDomainTrack);};if(u.anonymizeIp){u.all("set",'anonymizeIp',true)};if(u.uid){u.all("set","&uid",u.uid)};if(u.page){u.all("set","page",u.page)};if(u.title){u.all("set","title",u.title)};if(u.nonInteraction){u.all("set","nonInteraction",true)};if(u.campaignName){u.all("set","campaignName",u.campaignName)};if(u.campaignSource){u.all("set","campaignSource",u.campaignSource)};if(u.campaignMedium){u.all("set","campaignMedium",u.campaignMedium)};if(u.campaignContent){u.all("set","campaignContent",u.campaignContent)};if(u.campaignKeyword){u.all("set","campaignKeyword",u.campaignKeyword)};for(d in utag.loader.GV(u)){if(d.indexOf("metric")==0||d.indexOf("dimension")==0){u.all("set",d,u[d]);}}
if(u.a=="view"){g={};g.hitType="pageview";u.all("send",g);u.id=(u.id?u.id:b._corder);if(u.id&&!(u.id instanceof Array)){u.all("require","ecommerce","ecommerce.js");g={};g.id=u.id;g.affiliation=(u.affiliation?u.affiliation:b._cstore);g.revenue=(u.revenue?u.revenue:b._ctotal);g.shipping=(u.shipping?u.shipping:b._cship);g.tax=(u.tax?u.tax:b._ctax);u.all('ecommerce:addTransaction',g);for(f=0;f<b._cprod.length;f++){g={};g.id=u.id;g.sku=b._cprod[f];g.name=(b._cprodname[f]?b._cprodname[f]:b._cprod[f]);g.category=(b._ccat[f]?b._ccat[f]:"");g.price=(b._cprice[f]?b._cprice[f]:"1.00");g.quantity=(b._cquan[f]?b._cquan[f]:"1");u.all('ecommerce:addItem',g);}
u.all('ecommerce:send');}else if(u.id instanceof Array&&u.id.length>0){u.all("require","ecommerce","ecommerce.js");var lastindex=0;for(f=0;f<u.id.length;f++){if(f==u.id.length-1||(u.id[f]!=u.id[f+1])){g={};g.id=u.id[f];g.affiliation=(u.affiliation&&typeof u.affiliation[f]!="undefined"?u.affiliation[f]:b._cstore);g.revenue=(u.revenue&&typeof u.revenue[f]!="undefined"?u.revenue[f]:b._ctotal);g.shipping=(u.shipping&&typeof u.shipping[f]!="undefined"?u.shipping[f]:b._cship);g.tax=(u.tax&&typeof u.tax[f]!="undefined"?u.tax[f]:b._ctax);u.all('ecommerce:addTransaction',g);for(e=lastindex;e<f+1;e++){g={};g.id=u.id[f];g.sku=b._cprod[e];g.name=(b._cprodname[e]?b._cprodname[e]:b._cprod[e]);g.category=(b._ccat[e]?b._ccat[e]:"");g.price=(b._cprice[e]?b._cprice[e]:"1.00");g.quantity=(b._cquan[e]?b._cquan[e]:"1");u.all('ecommerce:addItem',g);}
lastindex=f+1;}}
u.all('ecommerce:send');}}
if(u.eventCategory&&u.eventAction){g={};g.hitType="event";g.eventCategory=u.eventCategory;g.eventAction=u.eventAction;if(u.eventLabel){g.eventLabel=u.eventLabel};if(typeof u.eventValue!="undefined"){g.eventValue=u.eventValue};u.all("send",g);}
for(e=0;e<b.ga_events.length;e++){g={};g.hitType="event";g.eventCategory=b.ga_events[e].eventCategory;g.eventAction=b.ga_events[e].eventAction;g.eventLabel=b.ga_events[e].eventLabel;g.eventValue=b.ga_events[e].eventValue;u.all("send",g);}
if(u.socialNetwork&&u.socialAction&&u.socialTarget){g={};g.hitType="social";g.socialNetwork=u.socialNetwork;g.socialAction=u.socialAction;g.socialTarget=u.socialTarget;u.all("send",g);}
if(u.timingCategory&&u.timingVar&&u.timingValue){g={};g.hitType="timing";g.timingCategory=u.timingCategory;g.timingVar=u.timingVar;g.timingValue=u.timingValue;g.timingLabel=u.timingLabel||"";u.all("send",g);}
if(u["ga-disable"]){window["ga-disable-"+u["ga-disable"]]=true};(function(){var id='tealium-tag-7110';if(document.getElementById(id)){return;}
u.o.l=1*new Date();var e=document.createElement('script');e.async=true;e.id=id;e.src='//www.google-analytics.com/analytics.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(e,s);})();}}
try{utag.o[loader].loader.LOAD(id)}catch(e){utag.loader.LOAD(id)}})('68','citrix.collaboration-prelogin-v2');}catch(e){}
jQuery1707893080771900713_1381505848563({"string": "3c772fdf-b4b6-4425-914e-8289d45263ac"})
jQuery1707893080771900713_1381505848564({"string": "3c772fdf-b4b6-4425-914e-8289d45263ac"})
jQuery1707893080771900713_1381505848565({"string": "3c772fdf-b4b6-4425-914e-8289d45263ac"})
(function(){var aa=encodeURIComponent,ba=Infinity,ca=setTimeout,da=isNaN,m=Math,ea=decodeURIComponent;function ha(a,b){return a.name=b}
var n="push",ia="test",ja="slice",p="replace",ka="load",la="floor",ma="charAt",na="value",q="indexOf",oa="match",pa="port",qa="createElement",ra="path",r="name",g="getTime",u="host",v="toString",w="length",x="prototype",sa="clientWidth",y="split",ta="stopPropagation",ua="scope",z="location",va="search",A="protocol",wa="clientHeight",xa="href",B="substring",ya="apply",za="navigator",C="join",D="toLowerCase",E;function Aa(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function Ba(a){return"function"==typeof a}function Ca(a){return void 0!=a&&-1<(a.constructor+"")[q]("String")}function F(a,b){return void 0==a||"-"==a&&!b||""==a}function Da(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t"[q](a[ma](0));)a=a[B](1);for(;a&&-1<" \n\r\t"[q](a[ma](a[w]-1));)a=a[B](0,a[w]-1);return a}function Ea(){return m.round(2147483647*m.random())}function Fa(){}
function G(a,b){if(aa instanceof Function)return b?encodeURI(a):aa(a);H(68);return escape(a)}function I(a){a=a[y]("+")[C](" ");if(ea instanceof Function)try{return ea(a)}catch(b){H(17)}else H(68);return unescape(a)}var Ga=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},Ha=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,!!d):a.detachEvent&&a.detachEvent("on"+b,c)};
function Ia(a,b){if(a){var c=J[qa]("script");c.type="text/javascript";c.async=!0;c.src=a;c.id=b;var d=J.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d);return c}}function K(a){return a&&0<a[w]?a[0]:""}function L(a){var b=a?a[w]:0;return 0<b?a[b-1]:""}var Ja=function(){this.prefix="ga.";this.R={}};Ja[x].set=function(a,b){this.R[this.prefix+a]=b};Ja[x].get=function(a){return this.R[this.prefix+a]};Ja[x].contains=function(a){return void 0!==this.get(a)};function Ka(a){0==a[q]("www.")&&(a=a[B](4));return a[D]()}function La(a,b){var c,d={url:a,protocol:"http",host:"",path:"",d:new Ja,anchor:""};if(!a)return d;c=a[q]("://");0<=c&&(d.protocol=a[B](0,c),a=a[B](c+3));c=a[va]("/|\\?|#");if(0<=c)d.host=a[B](0,c)[D](),a=a[B](c);else return d.host=a[D](),d;c=a[q]("#");0<=c&&(d.anchor=a[B](c+1),a=a[B](0,c));c=a[q]("?");0<=c&&(Na(d.d,a[B](c+1)),a=a[B](0,c));d.anchor&&b&&Na(d.d,d.anchor);a&&"/"==a[ma](0)&&(a=a[B](1));d.path=a;return d}
function Oa(a,b){function c(a){var b=(a.hostname||"")[y](":")[0][D](),c=(a[A]||"")[D](),c=1*a[pa]||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";0==a[q]("/")||(a="/"+a);return[b,""+c,a]}var d=b||J[qa]("a");d.href=J[z][xa];var e=(d[A]||"")[D](),f=c(d),Be=d[va]||"",k=e+"//"+f[0]+(f[1]?":"+f[1]:"");0==a[q]("//")?a=e+a:0==a[q]("/")?a=k+a:a&&0!=a[q]("?")?0>a[y]("/")[0][q](":")&&(a=k+f[2][B](0,f[2].lastIndexOf("/"))+"/"+a):a=k+f[2]+(a||Be);d.href=a;e=c(d);return{protocol:(d[A]||"")[D](),host:e[0],
port:e[1],path:e[2],Oa:d[va]||"",url:a||""}}function Na(a,b){function c(b,c){a.contains(b)||a.set(b,[]);a.get(b)[n](c)}for(var d=Da(b)[y]("&"),e=0;e<d[w];e++)if(d[e]){var f=d[e][q]("=");0>f?c(d[e],"1"):c(d[e][B](0,f),d[e][B](f+1))}}function Pa(a,b){if(F(a)||"["==a[ma](0)&&"]"==a[ma](a[w]-1))return"-";var c=J.domain;return a[q](c+(b&&"/"!=b?b:""))==(0==a[q]("http://")?7:0==a[q]("https://")?8:0)?"0":a};var Qa=0;function Ra(a,b,c){1<=Qa||1<=100*m.random()||(a=["utmt=error","utmerr="+a,"utmwv=5.4.5","utmn="+Ea(),"utmsp=1"],b&&a[n]("api="+b),c&&a[n]("msg="+G(c[B](0,100))),M.w&&a[n]("aip=1"),Sa(a[C]("&")),Qa++)};var Ta=0,Ua={};function N(a){return Va("x"+Ta++,a)}function Va(a,b){Ua[a]=!!b;return a}
var Wa=N(),Xa=Va("anonymizeIp"),Ya=N(),$a=N(),ab=N(),bb=N(),O=N(),P=N(),cb=N(),db=N(),eb=N(),fb=N(),gb=N(),hb=N(),ib=N(),jb=N(),kb=N(),lb=N(),nb=N(),ob=N(),pb=N(),qb=N(),rb=N(),sb=N(),tb=N(),ub=N(),vb=N(),wb=N(),xb=N(),yb=N(),zb=N(),Ab=N(),Bb=N(),Cb=N(),Db=N(),Eb=N(),Fb=N(!0),Gb=Va("currencyCode"),Hb=Va("page"),Ib=Va("title"),Jb=N(),Kb=N(),Lb=N(),Mb=N(),Nb=N(),Ob=N(),Pb=N(),Qb=N(),Rb=N(),Q=N(!0),Sb=N(!0),Tb=N(!0),Ub=N(!0),Vb=N(!0),Wb=N(!0),Zb=N(!0),$b=N(!0),ac=N(!0),bc=N(!0),cc=N(!0),R=N(!0),dc=N(!0),
ec=N(!0),fc=N(!0),gc=N(!0),hc=N(!0),ic=N(!0),jc=N(!0),S=N(!0),kc=N(!0),lc=N(!0),mc=N(!0),nc=N(!0),oc=N(!0),pc=N(!0),qc=N(!0),rc=Va("campaignParams"),sc=N(),tc=Va("hitCallback"),uc=N();N();var vc=N(),wc=N(),xc=N(),yc=N(),zc=N(),Ac=N(),Bc=N(),Cc=N(),Dc=N(),Ec=N(),Fc=N(),Gc=N(),Hc=N(),Ic=N();N();var Mc=N(),Nc=N(),Oc=N(),Oe=Va("uaName"),Pe=Va("uaDomain"),Qe=Va("uaPath");var Re=function(){function a(a,c,d){T($[x],a,c,d)}a("_createTracker",$[x].r,55);a("_getTracker",$[x].oa,0);a("_getTrackerByName",$[x].u,51);a("_getTrackers",$[x].pa,130);a("_anonymizeIp",$[x].aa,16);a("_forceSSL",$[x].la,125);a("_getPlugin",Pc,120)},Se=function(){function a(a,c,d){T(U[x],a,c,d)}Qc("_getName",$a,58);Qc("_getAccount",Wa,64);Qc("_visitCode",Q,54);Qc("_getClientInfo",ib,53,1);Qc("_getDetectTitle",lb,56,1);Qc("_getDetectFlash",jb,65,1);Qc("_getLocalGifPath",wb,57);Qc("_getServiceMode",
xb,59);V("_setClientInfo",ib,66,2);V("_setAccount",Wa,3);V("_setNamespace",Ya,48);V("_setAllowLinker",fb,11,2);V("_setDetectFlash",jb,61,2);V("_setDetectTitle",lb,62,2);V("_setLocalGifPath",wb,46,0);V("_setLocalServerMode",xb,92,void 0,0);V("_setRemoteServerMode",xb,63,void 0,1);V("_setLocalRemoteServerMode",xb,47,void 0,2);V("_setSampleRate",vb,45,1);V("_setCampaignTrack",kb,36,2);V("_setAllowAnchor",gb,7,2);V("_setCampNameKey",ob,41);V("_setCampContentKey",tb,38);V("_setCampIdKey",nb,39);V("_setCampMediumKey",
rb,40);V("_setCampNOKey",ub,42);V("_setCampSourceKey",qb,43);V("_setCampTermKey",sb,44);V("_setCampCIdKey",pb,37);V("_setCookiePath",P,9,0);V("_setMaxCustomVariables",yb,0,1);V("_setVisitorCookieTimeout",cb,28,1);V("_setSessionCookieTimeout",db,26,1);V("_setCampaignCookieTimeout",eb,29,1);V("_setReferrerOverride",Jb,49);V("_setSiteSpeedSampleRate",Dc,132);a("_trackPageview",U[x].Fa,1);a("_trackEvent",U[x].F,4);a("_trackPageLoadTime",U[x].Ea,100);a("_trackSocial",U[x].Ga,104);a("_trackTrans",U[x].Ia,
18);a("_sendXEvent",U[x].t,78);a("_createEventTracker",U[x].ia,74);a("_getVersion",U[x].qa,60);a("_setDomainName",U[x].B,6);a("_setAllowHash",U[x].va,8);a("_getLinkerUrl",U[x].na,52);a("_link",U[x].link,101);a("_linkByPost",U[x].ua,102);a("_setTrans",U[x].za,20);a("_addTrans",U[x].$,21);a("_addItem",U[x].Y,19);a("_clearTrans",U[x].ea,105);a("_setTransactionDelim",U[x].Aa,82);a("_setCustomVar",U[x].wa,10);a("_deleteCustomVar",U[x].ka,35);a("_getVisitorCustomVar",U[x].ra,50);a("_setXKey",U[x].Ca,83);
a("_setXValue",U[x].Da,84);a("_getXKey",U[x].sa,76);a("_getXValue",U[x].ta,77);a("_clearXKey",U[x].fa,72);a("_clearXValue",U[x].ga,73);a("_createXObj",U[x].ja,75);a("_addIgnoredOrganic",U[x].W,15);a("_clearIgnoredOrganic",U[x].ba,97);a("_addIgnoredRef",U[x].X,31);a("_clearIgnoredRef",U[x].ca,32);a("_addOrganic",U[x].Z,14);a("_clearOrganic",U[x].da,70);a("_cookiePathCopy",U[x].ha,30);a("_get",U[x].ma,106);a("_set",U[x].xa,107);a("_addEventListener",U[x].addEventListener,108);a("_removeEventListener",
U[x].removeEventListener,109);a("_addDevId",U[x].V);a("_getPlugin",Pc,122);a("_setPageGroup",U[x].ya,126);a("_trackTiming",U[x].Ha,124);a("_initData",U[x].v,2);a("_setVar",U[x].Ba,22);V("_setSessionTimeout",db,27,3);V("_setCookieTimeout",eb,25,3);V("_setCookiePersistence",cb,24,1);a("_setAutoTrackOutbound",Fa,79);a("_setTrackOutboundSubdomains",Fa,81);a("_setHrefExamineLimit",Fa,80)};function Pc(a){var b=this.plugins_;if(b)return b.get(a)}
var T=function(a,b,c,d){a[b]=function(){try{return void 0!=d&&H(d),c[ya](this,arguments)}catch(a){throw Ra("exc",b,a&&a[r]),a;}}},Qc=function(a,b,c,d){U[x][a]=function(){try{return H(c),Aa(this.a.get(b),d)}catch(e){throw Ra("exc",a,e&&e[r]),e;}}},V=function(a,b,c,d,e){U[x][a]=function(f){try{H(c),void 0==e?this.a.set(b,Aa(f,d)):this.a.set(b,e)}catch(Be){throw Ra("exc",a,Be&&Be[r]),Be;}}},Te=function(a,b){return{type:b,target:a,stopPropagation:function(){throw"aborted";}}};var Rc=RegExp(/(^|\.)doubleclick\.net$/i),Sc=function(a,b){return Rc[ia](J[z].hostname)?!0:"/"!==b?!1:0!=a[q]("www.google.")&&0!=a[q](".google.")&&0!=a[q]("google.")||-1<a[q]("google.org")?!1:!0},Tc=function(a){var b=a.get(bb),c=a.c(P,"/");Sc(b,c)&&a[ta]()};var Zc=function(){var a={},b={},c=new Uc;this.g=function(a,b){c.add(a,b)};var d=new Uc;this.e=function(a,b){d.add(a,b)};var e=!1,f=!1,Be=!0;this.T=function(){e=!0};this.j=function(a){this[ka]();this.set(sc,a,!0);a=new Vc(this);e=!1;d.execute(this);e=!0;b={};this.n();a.Ja()};this.load=function(){e&&(e=!1,this.Ka(),Wc(this),f||(f=!0,c.execute(this),Xc(this),Wc(this)),e=!0)};this.n=function(){if(e)if(f)e=!1,Xc(this),e=!0;else this[ka]()};this.get=function(c){Ua[c]&&this[ka]();return void 0!==b[c]?b[c]:
a[c]};this.set=function(c,d,e){Ua[c]&&this[ka]();e?b[c]=d:a[c]=d;Ua[c]&&this.n()};this.Za=function(b){a[b]=this.b(b,0)+1};this.b=function(a,b){var c=this.get(a);return void 0==c||""===c?b:1*c};this.c=function(a,b){var c=this.get(a);return void 0==c?b:c+""};this.Ka=function(){if(Be){var b=this.c(bb,""),c=this.c(P,"/");Sc(b,c)||(a[O]=a[hb]&&""!=b?Yc(b):1,Be=!1)}}};Zc[x].stopPropagation=function(){throw"aborted";};
var Vc=function(a){var b=this;this.q=0;var c=a.get(tc);this.Ua=function(){0<b.q&&c&&(b.q--,b.q||c())};this.Ja=function(){!b.q&&c&&ca(c,10)};a.set(uc,b,!0)};function $c(a,b){b=b||[];for(var c=0;c<b[w];c++){var d=b[c];if(""+a==d||0==d[q](a+"."))return d}return"-"}
var bd=function(a,b,c){c=c?"":a.c(O,"1");b=b[y](".");if(6!==b[w]||ad(b[0],c))return!1;c=1*b[1];var d=1*b[2],e=1*b[3],f=1*b[4];b=1*b[5];if(!(0<=c&&0<d&&0<e&&0<f&&0<=b))return!1;a.set(Q,c);a.set(Vb,d);a.set(Wb,e);a.set(Zb,f);a.set($b,b);return!0},cd=function(a){var b=a.get(Q),c=a.get(Vb),d=a.get(Wb),e=a.get(Zb),f=a.b($b,1);return[a.b(O,1),void 0!=b?b:"-",c||"-",d||"-",e||"-",f][C](".")},dd=function(a){return[a.b(O,1),a.b(cc,0),a.b(R,1),a.b(dc,0)][C](".")},ed=function(a,b,c){c=c?"":a.c(O,"1");var d=
b[y](".");if(4!==d[w]||ad(d[0],c))d=null;a.set(cc,d?1*d[1]:0);a.set(R,d?1*d[2]:10);a.set(dc,d?1*d[3]:a.get(ab));return null!=d||!ad(b,c)},fd=function(a,b){var c=G(a.c(Tb,"")),d=[],e=a.get(Fb);if(!b&&e){for(var f=0;f<e[w];f++){var Be=e[f];Be&&1==Be[ua]&&d[n](f+"="+G(Be[r])+"="+G(Be[na])+"=1")}0<d[w]&&(c+="|"+d[C]("^"))}return c?a.b(O,1)+"."+c:null},gd=function(a,b,c){c=c?"":a.c(O,"1");b=b[y](".");if(2>b[w]||ad(b[0],c))return!1;b=b[ja](1)[C](".")[y]("|");0<b[w]&&a.set(Tb,I(b[0]));if(1>=b[w])return!0;
b=b[1][y](-1==b[1][q](",")?"^":",");for(c=0;c<b[w];c++){var d=b[c][y]("=");if(4==d[w]){var e={};ha(e,I(d[1]));e.value=I(d[2]);e.scope=1;a.get(Fb)[d[0]]=e}}return!0},hd=function(a,b){var c=Ue(a,b);return c?[a.b(O,1),a.b(ec,0),a.b(fc,1),a.b(gc,1),c][C]("."):""},Ue=function(a){function b(b,e){if(!F(a.get(b))){var f=a.c(b,""),f=f[y](" ")[C]("%20"),f=f[y]("+")[C]("%20");c[n](e+"="+f)}}var c=[];b(ic,"utmcid");b(nc,"utmcsr");b(S,"utmgclid");b(kc,"utmgclsrc");b(lc,"utmdclid");b(mc,"utmdsid");b(jc,"utmccn");
b(oc,"utmcmd");b(pc,"utmctr");b(qc,"utmcct");return c[C]("|")},id=function(a,b,c){c=c?"":a.c(O,"1");b=b[y](".");if(5>b[w]||ad(b[0],c))return a.set(ec,void 0),a.set(fc,void 0),a.set(gc,void 0),a.set(ic,void 0),a.set(jc,void 0),a.set(nc,void 0),a.set(oc,void 0),a.set(pc,void 0),a.set(qc,void 0),a.set(S,void 0),a.set(kc,void 0),a.set(lc,void 0),a.set(mc,void 0),!1;a.set(ec,1*b[1]);a.set(fc,1*b[2]);a.set(gc,1*b[3]);Ve(a,b[ja](4)[C]("."));return!0},Ve=function(a,b){function c(a){return(a=b[oa](a+"=(.*?)(?:\\|utm|$)"))&&
2==a[w]?a[1]:void 0}function d(b,c){c?(c=e?I(c):c[y]("%20")[C](" "),a.set(b,c)):a.set(b,void 0)}-1==b[q]("=")&&(b=I(b));var e="2"==c("utmcvr");d(ic,c("utmcid"));d(jc,c("utmccn"));d(nc,c("utmcsr"));d(oc,c("utmcmd"));d(pc,c("utmctr"));d(qc,c("utmcct"));d(S,c("utmgclid"));d(kc,c("utmgclsrc"));d(lc,c("utmdclid"));d(mc,c("utmdsid"))},ad=function(a,b){return b?a!=b:!/^\d+$/[ia](a)};var Uc=function(){this.filters=[]};Uc[x].add=function(a,b){this.filters[n]({name:a,s:b})};Uc[x].execute=function(a){try{for(var b=0;b<this.filters[w];b++)this.filters[b].s.call(W,a)}catch(c){}};function jd(a){100!=a.get(vb)&&a.get(Q)%1E4>=100*a.get(vb)&&a[ta]()}function kd(a){ld(a.get(Wa))&&a[ta]()}function md(a){"file:"==J[z][A]&&a[ta]()}function Ge(a){He()&&a[ta]()}function nd(a){a.get(Ib)||a.set(Ib,J.title,!0);a.get(Hb)||a.set(Hb,J[z].pathname+J[z][va],!0)};var od=new function(){var a=[];this.set=function(b){a[b]=!0};this.Xa=function(){for(var b=[],c=0;c<a[w];c++)a[c]&&(b[m[la](c/6)]=b[m[la](c/6)]^1<<c%6);for(c=0;c<b[w];c++)b[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[ma](b[c]||0);return b[C]("")+"~"}};function H(a){od.set(a)};var W=window,J=document,ld=function(a){var b=W._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===W["ga-disable-"+a])return!0;try{var c=W.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(d){}return!1},He=function(){return W[za]&&"preview"==W[za].loadPurpose},We=function(a,b){ca(a,b)},pd=function(a){var b=[],c=J.cookie[y](";");a=RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c[w];d++){var e=c[d][oa](a);e&&b[n](e[1])}return b},X=function(a,b,c,d,e,f){e=ld(e)?!1:Sc(d,c)?!1:He()?!1:!0;if(e){if(b&&
0<=W[za].userAgent[q]("Firefox")){b=b[p](/\n|\r/g," ");e=0;for(var Be=b[w];e<Be;++e){var k=b.charCodeAt(e)&255;if(10==k||13==k)b=b[B](0,e)+"?"+b[B](e+1)}}b&&2E3<b[w]&&(b=b[B](0,2E3),H(69));a=a+"="+b+"; path="+c+"; ";f&&(a+="expires="+(new Date((new Date)[g]()+f)).toGMTString()+"; ");d&&(a+="domain="+d+";");J.cookie=a}};var qd,rd,sd=function(){if(!qd){var a={},b=W[za],c=W.screen;a.Q=c?c.width+"x"+c.height:"-";a.P=c?c.colorDepth+"-bit":"-";a.language=(b&&(b.language||b.browserLanguage)||"-")[D]();a.javaEnabled=b&&b.javaEnabled()?1:0;a.characterSet=J.characterSet||J.charset||"-";try{var d;var e=J.documentElement,f=J.body,Be=f&&f[sa]&&f[wa],b=[];e&&e[sa]&&e[wa]&&("CSS1Compat"===J.compatMode||!Be)?b=[e[sa],e[wa]]:Be&&(b=[f[sa],f[wa]]);d=0>=b[0]||0>=b[1]?"":b[C]("x");a.Wa=d}catch(k){H(135)}qd=a}},td=function(){sd();for(var a=
qd,b=W[za],a=b.appName+b.version+a.language+b.platform+b.userAgent+a.javaEnabled+a.Q+a.P+(J.cookie?J.cookie:"")+(J.referrer?J.referrer:""),b=a[w],c=W.history[w];0<c;)a+=c--^b++;return Yc(a)},ud=function(a){sd();var b=qd;a.set(Lb,b.Q);a.set(Mb,b.P);a.set(Pb,b.language);a.set(Qb,b.characterSet);a.set(Nb,b.javaEnabled);a.set(Rb,b.Wa);if(a.get(ib)&&a.get(jb)){if(!(b=rd)){var c,d,e;d="ShockwaveFlash";if((b=(b=W[za])?b.plugins:void 0)&&0<b[w])for(c=0;c<b[w]&&!e;c++)d=b[c],-1<d[r][q]("Shockwave Flash")&&
(e=d.description[y]("Shockwave Flash ")[1]);else{d=d+"."+d;try{c=new ActiveXObject(d+".7"),e=c.GetVariable("$version")}catch(f){}if(!e)try{c=new ActiveXObject(d+".6"),e="WIN 6,0,21,0",c.AllowScriptAccess="always",e=c.GetVariable("$version")}catch(Be){}if(!e)try{c=new ActiveXObject(d),e=c.GetVariable("$version")}catch(k){}e&&(e=e[y](" ")[1][y](","),e=e[0]+"."+e[1]+" r"+e[2])}b=e?e:"-"}rd=b;a.set(Ob,rd)}else a.set(Ob,"-")};var vd=function(a){if(Ba(a))this.s=a;else{var b=a[0],c=b.lastIndexOf(":"),d=b.lastIndexOf(".");this.h=this.i=this.l="";-1==c&&-1==d?this.h=b:-1==c&&-1!=d?(this.i=b[B](0,d),this.h=b[B](d+1)):-1!=c&&-1==d?(this.l=b[B](0,c),this.h=b[B](c+1)):c>d?(this.i=b[B](0,d),this.l=b[B](d+1,c),this.h=b[B](c+1)):(this.i=b[B](0,d),this.h=b[B](d+1));this.k=a[ja](1);this.Ma=!this.l&&"_require"==this.h;this.J=!this.i&&!this.l&&"_provide"==this.h}},Y=function(){T(Y[x],"push",Y[x][n],5);T(Y[x],"_getPlugin",Pc,121);T(Y[x],
"_createAsyncTracker",Y[x].Sa,33);T(Y[x],"_getAsyncTracker",Y[x].Ta,34);this.I=new Ja;this.p=[]};E=Y[x];E.Na=function(a,b,c){var d=this.I.get(a);if(!Ba(d))return!1;b.plugins_=b.plugins_||new Ja;b.plugins_.set(a,new d(b,c||{}));return!0};E.push=function(a){var b=Z.Va[ya](this,arguments),b=Z.p.concat(b);for(Z.p=[];0<b[w]&&!Z.O(b[0])&&!(b.shift(),0<Z.p[w]););Z.p=Z.p.concat(b);return 0};E.Va=function(a){for(var b=[],c=0;c<arguments[w];c++)try{var d=new vd(arguments[c]);d.J?this.O(d):b[n](d)}catch(e){}return b};
E.O=function(a){try{if(a.s)a.s[ya](W);else if(a.J)this.I.set(a.k[0],a.k[1]);else{var b="_gat"==a.i?M:"_gaq"==a.i?Z:M.u(a.i);if(a.Ma){if(!this.Na(a.k[0],b,a.k[2])){if(!a.Pa){var c=Oa(""+a.k[1]);var d=c[A],e=J[z][A];var f;if(f="https:"==d||d==e?!0:"http:"!=d?!1:"http:"==e){var Be;t:{var k=Oa(J[z][xa]);if(!(c.Oa||0<=c.url[q]("?")||0<=c[ra][q]("://")||c[u]==k[u]&&c[pa]==k[pa]))for(var s="http:"==c[A]?80:443,t=M.S,b=0;b<t[w];b++)if(c[u]==t[b][0]&&(c[pa]||s)==(t[b][1]||s)&&0==c[ra][q](t[b][2])){Be=!0;break t}Be=
!1}f=Be&&!ld()}f&&(a.Pa=Ia(c.url))}return!0}}else a.l&&(b=b.plugins_.get(a.l)),b[a.h][ya](b,a.k)}}catch(Za){}};E.Sa=function(a,b){return M.r(a,b||"")};E.Ta=function(a){return M.u(a)};var yd=function(){function a(a,b,c,d){void 0==f[a]&&(f[a]={});void 0==f[a][b]&&(f[a][b]=[]);f[a][b][c]=d}function b(a,b,c){if(void 0!=f[a]&&void 0!=f[a][b])return f[a][b][c]}function c(a,b){if(void 0!=f[a]&&void 0!=f[a][b]){f[a][b]=void 0;var c=!0,d;for(d=0;d<Be[w];d++)if(void 0!=f[a][Be[d]]){c=!1;break}c&&(f[a]=void 0)}}function d(a){var b="",c=!1,d,e;for(d=0;d<Be[w];d++)if(e=a[Be[d]],void 0!=e){c&&(b+=Be[d]);for(var c=[],f=void 0,ga=void 0,ga=0;ga<e[w];ga++)if(void 0!=e[ga]){f="";ga!=mb&&void 0==
e[ga-1]&&(f+=ga[v]()+Za);for(var Cd=e[ga],Jc="",Yb=void 0,Kc=void 0,Lc=void 0,Yb=0;Yb<Cd[w];Yb++)Kc=Cd[ma](Yb),Lc=Ma[Kc],Jc+=void 0!=Lc?Lc:Kc;f+=Jc;c[n](f)}b+=k+c[C](t)+s;c=!1}else c=!0;return b}var e=this,f=[],Be=["k","v"],k="(",s=")",t="*",Za="!",Ma={"'":"'0"};Ma[s]="'1";Ma[t]="'2";Ma[Za]="'3";var mb=1;e.Ra=function(a){return void 0!=f[a]};e.A=function(){for(var a="",b=0;b<f[w];b++)void 0!=f[b]&&(a+=b[v]()+d(f[b]));return a};e.Qa=function(a){if(void 0==a)return e.A();for(var b=a.A(),c=0;c<f[w];c++)void 0==
f[c]||a.Ra(c)||(b+=c[v]()+d(f[c]));return b};e.f=function(b,c,d){if(!wd(d))return!1;a(b,"k",c,d);return!0};e.o=function(b,c,d){if(!xd(d))return!1;a(b,"v",c,d[v]());return!0};e.getKey=function(a,c){return b(a,"k",c)};e.N=function(a,c){return b(a,"v",c)};e.L=function(a){c(a,"k")};e.M=function(a){c(a,"v")};T(e,"_setKey",e.f,89);T(e,"_setValue",e.o,90);T(e,"_getKey",e.getKey,87);T(e,"_getValue",e.N,88);T(e,"_clearKey",e.L,85);T(e,"_clearValue",e.M,86)};function wd(a){return"string"==typeof a}
function xd(a){return!("number"==typeof a||void 0!=Number&&a instanceof Number)||m.round(a)!=a||da(a)||a==ba?!1:!0};var zd=function(a){var b=W.gaGlobal;a&&!b&&(W.gaGlobal=b={});return b},Ad=function(){var a=zd(!0).hid;null==a&&(a=Ea(),zd(!0).hid=a);return a},Dd=function(a){a.set(Kb,Ad());var b=zd();if(b&&b.dh==a.get(O)){var c=b.sid;c&&(a.get(ac)?H(112):H(132),a.set(Zb,c),a.get(Sb)&&a.set(Wb,c));b=b.vid;a.get(Sb)&&b&&(b=b[y]("."),a.set(Q,1*b[0]),a.set(Vb,1*b[1]))}};var Ed,Fd=function(a,b,c,d){var e=a.c(bb,""),f=a.c(P,"/");d=void 0!=d?d:a.b(cb,0);a=a.c(Wa,"");X(b,c,f,e,a,d)},Xc=function(a){var b=a.c(bb,"");a.b(O,1);var c=a.c(P,"/"),d=a.c(Wa,"");X("__utma",cd(a),c,b,d,a.get(cb));X("__utmb",dd(a),c,b,d,a.get(db));X("__utmc",""+a.b(O,1),c,b,d);var e=hd(a,!0);e?X("__utmz",e,c,b,d,a.get(eb)):X("__utmz","",c,b,"",-1);(e=fd(a,!1))?X("__utmv",e,c,b,d,a.get(cb)):X("__utmv","",c,b,"",-1)},Wc=function(a){var b=a.b(O,1);if(!bd(a,$c(b,pd("__utma"))))return a.set(Ub,!0),!1;
var c=!ed(a,$c(b,pd("__utmb")));a.set(bc,c);id(a,$c(b,pd("__utmz")));gd(a,$c(b,pd("__utmv")));Ed=!c;return!0},Gd=function(a){Ed||0<pd("__utmb")[w]||(X("__utmd","1",a.c(P,"/"),a.c(bb,""),a.c(Wa,""),1E4),0==pd("__utmd")[w]&&a[ta]())};var h=0,Jd=function(a){void 0==a.get(Q)?Hd(a):a.get(Ub)&&!a.get(Mc)?Hd(a):a.get(bc)&&(Id(a),h++,1<h&&H(137))},Kd=function(a){a.get(hc)&&!a.get(ac)&&(Id(a),a.set(fc,a.get($b)))},Hd=function(a){var b=a.get(ab);a.set(Sb,!0);a.set(Q,Ea()^td(a)&2147483647);a.set(Tb,"");a.set(Vb,b);a.set(Wb,b);a.set(Zb,b);a.set($b,1);a.set(ac,!0);a.set(cc,0);a.set(R,10);a.set(dc,b);a.set(Fb,[]);a.set(Ub,!1);a.set(bc,!1)},Id=function(a){a.set(Wb,a.get(Zb));a.set(Zb,a.get(ab));a.Za($b);a.set(ac,!0);a.set(cc,0);a.set(R,10);
a.set(dc,a.get(ab));a.set(bc,!1)};var Ld="daum:q eniro:search_word naver:query pchome:q images.google:q google:q yahoo:p yahoo:q msn:q bing:q aol:query aol:q lycos:q lycos:query ask:q netscape:query cnn:query about:terms mamma:q voila:rdata virgilio:qs live:q baidu:wd alice:qs yandex:text najdi:q seznam:q rakuten:qt biglobe:q goo.ne:MT wp:szukaj onet:qt yam:k kvasir:q ozu:q terra:query rambler:query conduit:q babylon:q search-results:q avg:q comcast:q incredimail:q startsiden:q go.mail.ru:q search.centrum.cz:q 360.cn:q".split(" "),
Sd=function(a){if(a.get(kb)&&!a.get(Mc)){for(var b=!F(a.get(ic))||!F(a.get(nc))||!F(a.get(S))||!F(a.get(lc)),c={},d=0;d<Md[w];d++){var e=Md[d];c[e]=a.get(e)}(d=a.get(rc))?(H(149),e=new Ja,Na(e,d),d=e):d=La(J[z][xa],a.get(gb)).d;if("1"!=L(d.get(a.get(ub)))||!b)if(d=Xe(a,d)||Qd(a),d||b||!a.get(ac)||(Pd(a,void 0,"(direct)",void 0,void 0,void 0,"(direct)","(none)",void 0,void 0),d=!0),d&&(a.set(hc,Rd(a,c)),b="(direct)"==a.get(nc)&&"(direct)"==a.get(jc)&&"(none)"==a.get(oc),a.get(hc)||a.get(ac)&&!b))a.set(ec,
a.get(ab)),a.set(fc,a.get($b)),a.Za(gc)}},Xe=function(a,b){function c(c,d){d=d||"-";var e=L(b.get(a.get(c)));return e&&"-"!=e?I(e):d}var d=L(b.get(a.get(nb)))||"-",e=L(b.get(a.get(qb)))||"-",f=L(b.get(a.get(pb)))||"-",Be=L(b.get("gclsrc"))||"-",k=L(b.get("dclid"))||"-",s=c(ob,"(not set)"),t=c(rb,"(not set)"),Za=c(sb),Ma=c(tb);if(F(d)&&F(f)&&F(k)&&F(e))return!1;var mb=!F(f)&&!F(Be),mb=F(e)&&(!F(k)||mb),Xb=F(Za);if(mb||Xb){var Bd=Nd(a),Bd=La(Bd,!0);(Bd=Od(a,Bd))&&!F(Bd[1]&&!Bd[2])&&(mb&&(e=Bd[0]),Xb&&
(Za=Bd[1]))}Pd(a,d,e,f,Be,k,s,t,Za,Ma);return!0},Qd=function(a){var b=Nd(a),c=La(b,!0);if(!(void 0!=b&&null!=b&&""!=b&&"0"!=b&&"-"!=b&&0<=b[q]("://"))||c&&-1<c[u][q]("google")&&c.d.contains("q")&&"cse"==c[ra])return!1;if((b=Od(a,c))&&!b[2])return Pd(a,void 0,b[0],void 0,void 0,void 0,"(organic)","organic",b[1],void 0),!0;if(b||!a.get(ac))return!1;t:{for(var b=a.get(Bb),d=Ka(c[u]),e=0;e<b[w];++e)if(-1<d[q](b[e])){a=!1;break t}Pd(a,void 0,d,void 0,void 0,void 0,"(referral)","referral",void 0,"/"+c[ra]);
a=!0}return a},Od=function(a,b){for(var c=a.get(zb),d=0;d<c[w];++d){var e=c[d][y](":");if(-1<b[u][q](e[0][D]())){var f=b.d.get(e[1]);if(f&&(f=K(f),!f&&-1<b[u][q]("google.")&&(f="(not provided)"),!e[3]||-1<b.url[q](e[3]))){t:{for(var c=f,d=a.get(Ab),c=I(c)[D](),Be=0;Be<d[w];++Be)if(c==d[Be]){c=!0;break t}c=!1}return[e[2]||e[0],f,c]}}}return null},Pd=function(a,b,c,d,e,f,Be,k,s,t){a.set(ic,b);a.set(nc,c);a.set(S,d);a.set(kc,e);a.set(lc,f);a.set(jc,Be);a.set(oc,k);a.set(pc,s);a.set(qc,t)},Md=[jc,ic,
S,lc,nc,oc,pc,qc],Rd=function(a,b){function c(a){a=(""+a)[y]("+")[C]("%20");return a=a[y](" ")[C]("%20")}function d(c){var d=""+(a.get(c)||"");c=""+(b[c]||"");return 0<d[w]&&d==c}if(d(S)||d(lc))return H(131),!1;for(var e=0;e<Md[w];e++){var f=Md[e],Be=b[f]||"-",f=a.get(f)||"-";if(c(Be)!=c(f))return!0}return!1},Td=RegExp(/^https?:\/\/(www\.)?google(\.com?)?(\.[a-z]{2}t?)?\/?$/i),Nd=function(a){a=Pa(a.get(Jb),a.get(P));try{if(Td[ia](a))return H(136),a+"?q="}catch(b){H(145)}return a};var Ud,Vd,Wd=function(a){Ud=a.c(S,"");Vd=a.c(kc,"")},Xd=function(a){var b=a.c(S,""),c=a.c(kc,"");b!=Ud&&(-1<c[q]("ds")?a.set(mc,void 0):!F(Ud)&&-1<Vd[q]("ds")&&a.set(mc,Ud))};var Zd=function(a){Yd(a,J[z][xa])?(a.set(Mc,!0),H(12)):a.set(Mc,!1)},Yd=function(a,b){if(!a.get(fb))return!1;var c=La(b,a.get(gb)),d=K(c.d.get("__utma")),e=K(c.d.get("__utmb")),f=K(c.d.get("__utmc")),Be=K(c.d.get("__utmx")),k=K(c.d.get("__utmz")),s=K(c.d.get("__utmv")),c=K(c.d.get("__utmk"));if(Yc(""+d+e+f+Be+k+s)!=c){d=I(d);e=I(e);f=I(f);Be=I(Be);f=$d(d+e+f+Be,k,s,c);if(!f)return!1;k=f[0];s=f[1]}if(!bd(a,d,!0))return!1;ed(a,e,!0);id(a,k,!0);gd(a,s,!0);ae(a,Be,!0);return!0},ce=function(a,b,c){var d;
d=cd(a)||"-";var e=dd(a)||"-",f=""+a.b(O,1)||"-",Be=be(a)||"-",k=hd(a,!1)||"-";a=fd(a,!1)||"-";var s=Yc(""+d+e+f+Be+k+a),t=[];t[n]("__utma="+d);t[n]("__utmb="+e);t[n]("__utmc="+f);t[n]("__utmx="+Be);t[n]("__utmz="+k);t[n]("__utmv="+a);t[n]("__utmk="+s);d=t[C]("&");if(!d)return b;e=b[q]("#");if(c)return 0>e?b+"#"+d:b+"&"+d;c="";f=b[q]("?");0<e&&(c=b[B](e),b=b[B](0,e));return 0>f?b+"?"+d+c:b+"&"+d+c},$d=function(a,b,c,d){for(var e=0;3>e;e++){for(var f=0;3>f;f++){if(d==Yc(a+b+c))return H(127),[b,c];
var Be=b[p](/ /g,"%20"),k=c[p](/ /g,"%20");if(d==Yc(a+Be+k))return H(128),[Be,k];Be=Be[p](/\+/g,"%20");k=k[p](/\+/g,"%20");if(d==Yc(a+Be+k))return H(129),[Be,k];try{var s=b[oa]("utmctr=(.*?)(?:\\|utm|$)");if(s&&2==s[w]&&(Be=b[p](s[1],G(I(s[1]))),d==Yc(a+Be+c)))return H(139),[Be,c]}catch(t){}b=I(b)}c=I(c)}};var de="|",fe=function(a,b,c,d,e,f,Be,k,s){var t=ee(a,b);t||(t={},a.get(Cb)[n](t));t.id_=b;t.affiliation_=c;t.total_=d;t.tax_=e;t.shipping_=f;t.city_=Be;t.state_=k;t.country_=s;t.items_=t.items_||[];return t},ge=function(a,b,c,d,e,f,Be){a=ee(a,b)||fe(a,b,"",0,0,0,"","","");var k;t:{if(a&&a.items_){k=a.items_;for(var s=0;s<k[w];s++)if(k[s].sku_==c){k=k[s];break t}}k=null}s=k||{};s.transId_=b;s.sku_=c;s.name_=d;s.category_=e;s.price_=f;s.quantity_=Be;k||a.items_[n](s);return s},ee=function(a,b){for(var c=
a.get(Cb),d=0;d<c[w];d++)if(c[d].id_==b)return c[d];return null};var he,ie=function(a){if(!he){var b;b=J[z].hash;var c=W[r],d=/^#?gaso=([^&]*)/;if(c=(b=(b=b&&b[oa](d)||c&&c[oa](d))?b[1]:K(pd("GASO")))&&b[oa](/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))Fd(a,"GASO",""+b,0),M._gasoDomain=a.get(bb),M._gasoCPath=a.get(P),a=c[1],Ia("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+Ea(),"_gasojs");he=!0}};var ae=function(a,b,c){c&&(b=I(b));c=a.b(O,1);b=b[y](".");2>b[w]||!/^\d+$/[ia](b[0])||(b[0]=""+c,Fd(a,"__utmx",b[C]("."),void 0))},be=function(a,b){var c=$c(a.get(O),pd("__utmx"));"-"==c&&(c="");return b?G(c):c},Ye=function(a){try{var b=La(J[z][xa],!1),c=ea(L(b.d.get("utm_referrer")))||"";c&&a.set(Jb,c);var d=ea(K(b.d.get("utm_expid")))||"";d&&(d=d[y](".")[0],a.set(Oc,""+d))}catch(e){H(146)}},l=function(a){var b=W.gaData&&W.gaData.expId;b&&a.set(Oc,""+b)};var ke=function(a,b){var c=m.min(a.b(Dc,0),100);if(a.b(Q,0)%100>=c)return!1;c=Ze()||$e();if(void 0==c)return!1;var d=c[0];if(void 0==d||d==ba||da(d))return!1;0<d?af(c)?b(je(c)):b(je(c[ja](0,1))):Ga(W,"load",function(){ke(a,b)},!1);return!0},me=function(a,b,c,d){var e=new yd;e.f(14,90,b[B](0,500));e.f(14,91,a[B](0,150));e.f(14,92,""+le(c));void 0!=d&&e.f(14,93,d[B](0,500));e.o(14,90,c);return e},af=function(a){for(var b=1;b<a[w];b++)if(da(a[b])||a[b]==ba||0>a[b])return!1;return!0},le=function(a){return da(a)||
0>a?0:5E3>a?10*m[la](a/10):5E4>a?100*m[la](a/100):41E5>a?1E3*m[la](a/1E3):41E5},je=function(a){for(var b=new yd,c=0;c<a[w];c++)b.f(14,c+1,""+le(a[c])),b.o(14,c+1,a[c]);return b},Ze=function(){var a=W.performance||W.webkitPerformance;if(a=a&&a.timing){var b=a.navigationStart;if(0==b)H(133);else return[a.loadEventStart-b,a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-b,a.domInteractive-b,a.domContentLoadedEventStart-
b]}},$e=function(){if(W.top==W){var a=W.external,b=a&&a.onloadT;a&&!a.isValidLoadTime&&(b=void 0);2147483648<b&&(b=void 0);0<b&&a.setPageReadyTime();return void 0==b?void 0:[b]}};var cf=function(a){if(a.get(Sb))try{var b;t:{var c=pd(a.get(Oe)||"_ga");if(c&&!(1>c[w])){for(var d=[],e=0;e<c[w];e++){var f;var Be=c[e][y]("."),k=Be.shift();if(("GA1"==k||"1"==k)&&1<Be[w]){var s=Be.shift()[y]("-");1==s[w]&&(s[1]="1");s[0]*=1;s[1]*=1;f={Ya:s,$a:Be[C](".")}}else f=void 0;f&&d[n](f)}if(1==d[w]){b=d[0].$a;break t}if(0!=d[w]){var t=a.get(Pe)||a.get(bb),d=bf(d,(0==t[q](".")?t.substr(1):t)[y](".")[w],0);if(1==d[w]){b=d[0].$a;break t}var Za=a.get(Qe)||a.get(P);(c=Za)?(1<c[w]&&"/"==c[ma](c[w]-
1)&&(c=c.substr(0,c[w]-1)),0!=c[q]("/")&&(c="/"+c),Za=c):Za="/";d=bf(d,"/"==Za?1:Za[y]("/")[w],1);b=d[0].$a;break t}}b=void 0}if(b){var Ma=(""+b)[y](".");2==Ma[w]&&/[0-9.]/[ia](Ma)&&(H(114),a.set(Q,Ma[0]),a.set(Vb,Ma[1]),a.set(Sb,!1))}}catch(mb){H(115)}},bf=function(a,b,c){for(var d=[],e=[],f=128,Be=0;Be<a[w];Be++){var k=a[Be];if(k.Ya[c]==b)d[n](k);else if(k.Ya[c]==f)e[n](k);else k.Ya[c]<f&&(e=[k],f=k.Ya[c])}return 0<d[w]?d:e};var U=function(a,b,c){function d(a){return function(b){if((b=b.get(Nc)[a])&&b[w])for(var c=Te(e,a),d=0;d<b[w];d++)b[d].call(e,c)}}var e=this;this.a=new Zc;this.get=function(a){return this.a.get(a)};this.set=function(a,b,c){this.a.set(a,b,c)};this.set(Wa,b||"UA-XXXXX-X");this.set($a,a||"");this.set(Ya,c||"");this.set(ab,m.round((new Date)[g]()/1E3));this.set(P,"/");this.set(cb,63072E6);this.set(eb,15768E6);this.set(db,18E5);this.set(fb,!1);this.set(yb,50);this.set(gb,!1);this.set(hb,!0);this.set(ib,
!0);this.set(jb,!0);this.set(kb,!0);this.set(lb,!0);this.set(ob,"utm_campaign");this.set(nb,"utm_id");this.set(pb,"gclid");this.set(qb,"utm_source");this.set(rb,"utm_medium");this.set(sb,"utm_term");this.set(tb,"utm_content");this.set(ub,"utm_nooverride");this.set(vb,100);this.set(Dc,1);this.set(Ec,!1);this.set(wb,"/__utm.gif");this.set(xb,1);this.set(Cb,[]);this.set(Fb,[]);this.set(zb,Ld[ja](0));this.set(Ab,[]);this.set(Bb,[]);this.B("auto");this.set(Jb,J.referrer);Ye(this.a);this.set(Nc,{hit:[],
load:[]});this.a.g("0",Zd);this.a.g("1",Wd);this.a.g("2",Jd);this.a.g("3",cf);this.a.g("4",Sd);this.a.g("5",Xd);this.a.g("6",Kd);this.a.g("7",d("load"));this.a.g("8",ie);this.a.e("A",kd);this.a.e("B",md);this.a.e("C",Ge);this.a.e("D",Jd);this.a.e("E",jd);this.a.e("F",Tc);this.a.e("G",ne);this.a.e("H",Gd);this.a.e("I",nd);this.a.e("J",ud);this.a.e("K",Dd);this.a.e("L",l);this.a.e("M",d("hit"));this.a.e("N",oe);this.a.e("O",pe);0===this.get(ab)&&H(111);this.a.T();this.H=void 0};E=U[x];
E.m=function(){var a=this.get(Db);a||(a=new yd,this.set(Db,a));return a};E.La=function(a){for(var b in a){var c=a[b];a.hasOwnProperty(b)&&this.set(b,c,!0)}};E.K=function(a){if(this.get(Ec))return!1;var b=this,c=ke(this.a,function(c){b.set(Hb,a,!0);b.t(c)});this.set(Ec,c);return c};E.Fa=function(a){a&&Ca(a)?(H(13),this.set(Hb,a,!0)):"object"===typeof a&&null!==a&&this.La(a);this.H=a=this.get(Hb);this.a.j("page");this.K(a)};
E.F=function(a,b,c,d,e){if(""==a||!wd(a)||""==b||!wd(b)||void 0!=c&&!wd(c)||void 0!=d&&!xd(d))return!1;this.set(wc,a,!0);this.set(xc,b,!0);this.set(yc,c,!0);this.set(zc,d,!0);this.set(vc,!!e,!0);this.a.j("event");return!0};E.Ha=function(a,b,c,d,e){var f=this.a.b(Dc,0);1*e===e&&(f=e);if(this.a.b(Q,0)%100>=f)return!1;c=1*(""+c);if(""==a||!wd(a)||""==b||!wd(b)||!xd(c)||da(c)||0>c||0>f||100<f||void 0!=d&&(""==d||!wd(d)))return!1;this.t(me(a,b,c,d));return!0};
E.Ga=function(a,b,c,d){if(!a||!b)return!1;this.set(Ac,a,!0);this.set(Bc,b,!0);this.set(Cc,c||J[z][xa],!0);d&&this.set(Hb,d,!0);this.a.j("social");return!0};E.Ea=function(){this.set(Dc,10);this.K(this.H)};E.Ia=function(){this.a.j("trans")};E.t=function(a){this.set(Eb,a,!0);this.a.j("event")};E.ia=function(a){this.v();var b=this;return{_trackEvent:function(c,d,e){H(91);b.F(a,c,d,e)}}};E.ma=function(a){return this.get(a)};
E.xa=function(a,b){if(a)if(Ca(a))this.set(a,b);else if("object"==typeof a)for(var c in a)a.hasOwnProperty(c)&&this.set(c,a[c])};E.addEventListener=function(a,b){var c=this.get(Nc)[a];c&&c[n](b)};E.removeEventListener=function(a,b){for(var c=this.get(Nc)[a],d=0;c&&d<c[w];d++)if(c[d]==b){c.splice(d,1);break}};E.qa=function(){return"5.4.5"};E.B=function(a){this.get(hb);a="auto"==a?Ka(J.domain):a&&"-"!=a&&"none"!=a?a[D]():"";this.set(bb,a)};E.va=function(a){this.set(hb,!!a)};
E.na=function(a,b){return ce(this.a,a,b)};E.link=function(a,b){if(this.a.get(fb)&&a){var c=ce(this.a,a,b);J[z].href=c}};E.ua=function(a,b){this.a.get(fb)&&a&&a.action&&(a.action=ce(this.a,a.action,b))};
E.za=function(){this.v();var a=this.a,b=J.getElementById?J.getElementById("utmtrans"):J.utmform&&J.utmform.utmtrans?J.utmform.utmtrans:null;if(b&&b[na]){a.set(Cb,[]);for(var b=b[na][y]("UTM:"),c=0;c<b[w];c++){b[c]=Da(b[c]);for(var d=b[c][y](de),e=0;e<d[w];e++)d[e]=Da(d[e]);"T"==d[0]?fe(a,d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8]):"I"==d[0]&&ge(a,d[1],d[2],d[3],d[4],d[5],d[6])}}};E.$=function(a,b,c,d,e,f,Be,k){return fe(this.a,a,b,c,d,e,f,Be,k)};E.Y=function(a,b,c,d,e,f){return ge(this.a,a,b,c,d,e,f)};
E.Aa=function(a){de=a||"|"};E.ea=function(){this.set(Cb,[])};E.wa=function(a,b,c,d){var e=this.a;if(0>=a||a>e.get(yb))a=!1;else if(!b||!c||128<b[w]+c[w])a=!1;else{1!=d&&2!=d&&(d=3);var f={};ha(f,b);f.value=c;f.scope=d;e.get(Fb)[a]=f;a=!0}a&&this.a.n();return a};E.ka=function(a){this.a.get(Fb)[a]=void 0;this.a.n()};E.ra=function(a){return(a=this.a.get(Fb)[a])&&1==a[ua]?a[na]:void 0};E.Ca=function(a,b,c){this.m().f(a,b,c)};E.Da=function(a,b,c){this.m().o(a,b,c)};
E.sa=function(a,b){return this.m().getKey(a,b)};E.ta=function(a,b){return this.m().N(a,b)};E.fa=function(a){this.m().L(a)};E.ga=function(a){this.m().M(a)};E.ja=function(){return new yd};E.W=function(a){a&&this.get(Ab)[n](a[D]())};E.ba=function(){this.set(Ab,[])};E.X=function(a){a&&this.get(Bb)[n](a[D]())};E.ca=function(){this.set(Bb,[])};E.Z=function(a,b,c,d,e){if(a&&b){a=[a,b[D]()][C](":");if(d||e)a=[a,d,e][C](":");d=this.get(zb);d.splice(c?0:d[w],0,a)}};E.da=function(){this.set(zb,[])};
E.ha=function(a){this.a[ka]();var b=this.get(P),c=be(this.a);this.set(P,a);this.a.n();ae(this.a,c);this.set(P,b)};E.ya=function(a,b){if(0<a&&5>=a&&Ca(b)&&""!=b){var c=this.get(Fc)||[];c[a]=b;this.set(Fc,c)}};E.V=function(a){a=""+a;if(a[oa](/^[A-Za-z0-9]{1,5}$/)){var b=this.get(Ic)||[];b[n](a);this.set(Ic,b)}};E.v=function(){this.a[ka]()};E.Ba=function(a){a&&""!=a&&(this.set(Tb,a),this.a.j("var"))};var ne=function(a){"trans"!==a.get(sc)&&500<=a.b(cc,0)&&a[ta]();if("event"===a.get(sc)){var b=(new Date)[g](),c=a.b(dc,0),d=a.b(Zb,0),c=m[la](1*((b-(c!=d?c:1E3*c))/1E3));0<c&&(a.set(dc,b),a.set(R,m.min(10,a.b(R,0)+c)));0>=a.b(R,0)&&a[ta]()}},pe=function(a){"event"===a.get(sc)&&a.set(R,m.max(0,a.b(R,10)-1))};var qe=function(){var a=[];this.add=function(b,c,d){d&&(c=G(""+c));a[n](b+"="+c)};this.toString=function(){return a[C]("&")}},re=function(a,b){(b||2!=a.get(xb))&&a.Za(cc)},se=function(a,b){b.add("utmwv","5.4.5");b.add("utms",a.get(cc));b.add("utmn",Ea());var c=J[z].hostname;F(c)||b.add("utmhn",c,!0);c=a.get(vb);100!=c&&b.add("utmsp",c,!0)},te=function(a,b){b.add("utmht",(new Date)[g]());b.add("utmac",Da(a.get(Wa)));a.get(Oc)&&b.add("utmxkey",a.get(Oc),!0);a.get(vc)&&b.add("utmni",1);var c=a.get(Ic);
c&&0<c[w]&&b.add("utmdid",c[C]("."));ff(a,b);!1!==a.get(Xa)&&(a.get(Xa)||M.w)&&b.add("aip",1);1<M.ab()&&b.add("utmmt",1);b.add("utmu",od.Xa())},ue=function(a,b){for(var c=a.get(Fc)||[],d=[],e=1;e<c[w];e++)c[e]&&d[n](e+":"+G(c[e][p](/%/g,"%25")[p](/:/g,"%3A")[p](/,/g,"%2C")));d[w]&&b.add("utmpg",d[C](","))},ff=function(a,b){function c(a,b){b&&d[n](a+"="+b+";")}var d=[];c("__utma",cd(a));c("__utmz",hd(a,!1));c("__utmv",fd(a,!0));c("__utmx",be(a));b.add("utmcc",d[C]("+"),!0)},ve=function(a,b){a.get(ib)&&
(b.add("utmcs",a.get(Qb),!0),b.add("utmsr",a.get(Lb)),a.get(Rb)&&b.add("utmvp",a.get(Rb)),b.add("utmsc",a.get(Mb)),b.add("utmul",a.get(Pb)),b.add("utmje",a.get(Nb)),b.add("utmfl",a.get(Ob),!0))},we=function(a,b){a.get(lb)&&a.get(Ib)&&b.add("utmdt",a.get(Ib),!0);b.add("utmhid",a.get(Kb));b.add("utmr",Pa(a.get(Jb),a.get(P)),!0);b.add("utmp",G(a.get(Hb),!0),!0)},xe=function(a,b){for(var c=a.get(Db),d=a.get(Eb),e=a.get(Fb)||[],f=0;f<e[w];f++){var Be=e[f];Be&&(c||(c=new yd),c.f(8,f,Be[r]),c.f(9,f,Be[na]),
3!=Be[ua]&&c.f(11,f,""+Be[ua]))}F(a.get(wc))||F(a.get(xc),!0)||(c||(c=new yd),c.f(5,1,a.get(wc)),c.f(5,2,a.get(xc)),e=a.get(yc),void 0!=e&&c.f(5,3,e),e=a.get(zc),void 0!=e&&c.o(5,1,e));c?b.add("utme",c.Qa(d),!0):d&&b.add("utme",d.A(),!0)},ye=function(a,b,c){var d=new qe;re(a,c);se(a,d);d.add("utmt","tran");d.add("utmtid",b.id_,!0);d.add("utmtst",b.affiliation_,!0);d.add("utmtto",b.total_,!0);d.add("utmttx",b.tax_,!0);d.add("utmtsp",b.shipping_,!0);d.add("utmtci",b.city_,!0);d.add("utmtrg",b.state_,
!0);d.add("utmtco",b.country_,!0);xe(a,d);ve(a,d);we(a,d);(b=a.get(Gb))&&d.add("utmcu",b,!0);c||(ue(a,d),te(a,d));return d[v]()},ze=function(a,b,c){var d=new qe;re(a,c);se(a,d);d.add("utmt","item");d.add("utmtid",b.transId_,!0);d.add("utmipc",b.sku_,!0);d.add("utmipn",b.name_,!0);d.add("utmiva",b.category_,!0);d.add("utmipr",b.price_,!0);d.add("utmiqt",b.quantity_,!0);xe(a,d);ve(a,d);we(a,d);(b=a.get(Gb))&&d.add("utmcu",b,!0);c||(ue(a,d),te(a,d));return d[v]()},Ae=function(a,b){var c=a.get(sc);if("page"==
c)c=new qe,re(a,b),se(a,c),xe(a,c),ve(a,c),we(a,c),b||(ue(a,c),te(a,c)),c=[c[v]()];else if("event"==c)c=new qe,re(a,b),se(a,c),c.add("utmt","event"),xe(a,c),ve(a,c),we(a,c),b||(ue(a,c),te(a,c)),c=[c[v]()];else if("var"==c)c=new qe,re(a,b),se(a,c),c.add("utmt","var"),!b&&te(a,c),c=[c[v]()];else if("trans"==c)for(var c=[],d=a.get(Cb),e=0;e<d[w];++e){c[n](ye(a,d[e],b));for(var f=d[e].items_,Be=0;Be<f[w];++Be)c[n](ze(a,f[Be],b))}else"social"==c?b?c=[]:(c=new qe,re(a,b),se(a,c),c.add("utmt","social"),
c.add("utmsn",a.get(Ac),!0),c.add("utmsa",a.get(Bc),!0),c.add("utmsid",a.get(Cc),!0),xe(a,c),ve(a,c),we(a,c),ue(a,c),te(a,c),c=[c[v]()]):"feedback"==c?b?c=[]:(c=new qe,re(a,b),se(a,c),c.add("utmt","feedback"),c.add("utmfbid",a.get(Gc),!0),c.add("utmfbpr",a.get(Hc),!0),xe(a,c),ve(a,c),we(a,c),ue(a,c),te(a,c),c=[c[v]()]):c=[];return c},oe=function(a){var b,c=a.get(xb),d=a.get(uc),e=d&&d.Ua,f=0;if(0==c||2==c){var Be=a.get(wb)+"?";b=Ae(a,!0);for(var k=0,s=b[w];k<s;k++)Sa(b[k],e,Be,!0),f++}if(1==c||2==
c)for(b=Ae(a),k=0,s=b[w];k<s;k++)try{Sa(b[k],e),f++}catch(t){t&&Ra(t[r],void 0,t.message)}d&&(d.q=f)};var Ce=function(a){ha(this,"len");this.message=a+"-8192"},De=function(a){ha(this,"ff2post");this.message=a+"-2036"},Sa=function(a,b,c,d){b=b||Fa;if(d||2036>=a[w])gf(a,b,c);else if(8192>=a[w]){if(0<=W[za].userAgent[q]("Firefox")&&![].reduce)throw new De(a[w]);hf(a,b)||Ee(a,b)}else throw new Ce(a[w]);},gf=function(a,b,c){c=c||("https:"==J[z][A]||M.G?"https://ssl.google-analytics.com":"http://www.google-analytics.com")+"/__utm.gif?";var d=new Image(1,1);d.src=c+a;d.onload=function(){d.onload=null;d.onerror=
null;b()};d.onerror=function(){d.onload=null;d.onerror=null;b()}},hf=function(a,b){var c,d=("https:"==J[z][A]||M.G?"https://ssl.google-analytics.com":"http://www.google-analytics.com")+"/p/__utm.gif",e=W.XDomainRequest;if(e)c=new e,c.open("POST",d);else if(e=W.XMLHttpRequest)e=new e,"withCredentials"in e&&(c=e,c.open("POST",d,!0),c.setRequestHeader("Content-Type","text/plain"));if(c)return c.onreadystatechange=function(){4==c.readyState&&(b(),c=null)},c.send(a),!0},Ee=function(a,b){if(J.body){a=aa(a);
try{var c=J[qa]('<iframe name="'+a+'"></iframe>')}catch(d){c=J[qa]("iframe"),ha(c,a)}c.height="0";c.width="0";c.style.display="none";c.style.visibility="hidden";var e=J[z],e=("https:"==J[z][A]||M.G?"https://ssl.google-analytics.com":"http://www.google-analytics.com")+"/u/post_iframe.html#"+aa(e[A]+"//"+e[u]+"/favicon.ico"),f=function(){c.src="";c.parentNode&&c.parentNode.removeChild(c)};Ga(W,"beforeunload",f);var Be=!1,k=0,s=function(){if(!Be){try{if(9<k||c.contentWindow[z][u]==J[z][u]){Be=!0;f();
Ha(W,"beforeunload",f);b();return}}catch(a){}k++;ca(s,200)}};Ga(c,"load",s);J.body.appendChild(c);c.src=e}else We(function(){Ee(a,b)},100)};var $=function(){this.G=this.w=!1;this.C={};this.D=[];this.U=0;this.S=[["www.google-analytics.com","","/plugins/"]];this._gasoCPath=this._gasoDomain=void 0;Re();Se()};E=$[x];E.oa=function(a,b){return this.r(a,void 0,b)};E.r=function(a,b,c){b&&H(23);c&&H(67);void 0==b&&(b="~"+M.U++);a=new U(b,a,c);M.C[b]=a;M.D[n](a);return a};E.u=function(a){a=a||"";return M.C[a]||M.r(void 0,a)};E.pa=function(){return M.D[ja](0)};E.ab=function(){return M.D[w]};E.aa=function(){this.w=!0};E.la=function(){this.G=!0};var Fe=function(a){if("prerender"==J.webkitVisibilityState)return!1;a();return!0};var M=new $;var jf=W._gat;jf&&Ba(jf._getTracker)?M=jf:W._gat=M;var Z=new Y;(function(a){if(!Fe(a)){H(123);var b=!1,c=function(){!b&&Fe(a)&&(b=!0,Ha(J,"webkitvisibilitychange",c))};Ga(J,"webkitvisibilitychange",c)}})(function(){var a=W._gaq,b=!1;if(a&&Ba(a[n])&&(b="[object Array]"==Object[x][v].call(Object(a)),!b)){Z=a;return}W._gaq=Z;b&&Z[n][ya](Z,a)});function Yc(a){var b=1,c=0,d;if(a)for(b=0,d=a[w]-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b;return b};})();
(function(){var aa=encodeURIComponent,f=window,ba=setTimeout,n=Math,ea=RegExp;function fa(a,b){return a.name=b}var p="push",h="hash",ha="slice",q="data",r="cookie",t="indexOf",m="match",ia="defaultValue",ja="port",u="createElement",v="name",da="getTime",x="host",y="length",z="prototype",la="clientWidth",A="split",B="location",ma="hostname",ga="search",C="call",E="protocol",na="clientHeight",Ab="href",F="substring",G="apply",oa="navigator",Ub="parentNode",H="join",I="toLowerCase";var pa=new function(){var a=[];this.set=function(b){a[b]=!0};this.M=function(){for(var b=[],c=0;c<a[y];c++)a[c]&&(b[n.floor(c/6)]=b[n.floor(c/6)]^1<<c%6);for(c=0;c<b[y];c++)b[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[c]||0);return b[H]("")+"~"}};function J(a){pa.set(a)};function K(a){return"function"==typeof a}function qa(a){return void 0!=a&&-1<(a.constructor+"")[t]("String")}function ra(){return n.round(2147483647*n.random())}function Ca(a){var b=M[u]("img");b.width=1;b.height=1;b.src=a;return b}function L(){}function sa(a){if(aa instanceof Function)return aa(a);J(28);return a}function ka(a){return sa(a).replace(/\(/g,"%28").replace(/\)/g,"%29")}
var ta=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},ua=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};function vc(a,b){if(a){var c=M[u]("script");c.type="text/javascript";c.async=!0;c.src=a;c.id=b;var d=M.getElementsByTagName("script")[0];d[Ub].insertBefore(c,d)}}function eb(){var a=""+M[B][ma];return 0==a[t]("www.")?a[F](4):a}
function va(a){var b=M.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+M[B][ma];var c=b[t](a);if(5==c||6==c)if(a=b.charAt(c+a[y]),"/"==a||"?"==a||""==a||":"==a)return;return b}}function wa(a,b){if(1==b[y]&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=n.min(a[y]+1,b[y]),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e].hasOwnProperty(g)&&(c[g]=b[e][g]);break}else e<a[y]&&(c[a[e]]=b[e]);return c};var N=function(){this.keys=[];this.w={};this.m={}};N[z].set=function(a,b,c){this.keys[p](a);c?this.m[":"+a]=b:this.w[":"+a]=b};N[z].get=function(a){return this.m.hasOwnProperty(":"+a)?this.m[":"+a]:this.w[":"+a]};N[z].map=function(a){for(var b=0;b<this.keys[y];b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var O=f,M=document,xa=function(a){var b=O._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===O["ga-disable-"+a])return!0;try{var c=O.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(d){}return!1},fb=function(a){ba(a,100)},ya=function(a){var b=[],c=M[r][A](";");a=ea("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c[y];d++){var e=c[d][m](a);e&&b[p](e[1])}return b},zc=function(a,b,c,d,e,g){e=xa(e)?!1:Aa.test(M[B][ma])||"/"==c&&za.test(d)?!1:!0;if(!e)return!1;b&&200<b[y]&&(b=b[F](0,200),J(24));a=
a+"="+b+"; path="+c+"; ";g&&(a+="expires="+(new Date((new Date)[da]()+g)).toGMTString()+"; ");d&&"none"!=d&&(a+="domain="+d+";");d=M[r];M.cookie=a;return d!=M[r]},za=ea(/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/),Aa=ea(/(^|\.)doubleclick\.net$/i);var oc=function(){return(Ba||"https:"==M[B][E]?"https:":"http:")+"//www.google-analytics.com"},Da=function(a){fa(this,"len");this.message=a+"-8192"},Ea=function(a){fa(this,"ff2post");this.message=a+"-2036"},Ga=function(a,b){b=b||L;if(2036>=a[y])wc(a,b);else if(8192>=a[y]){var c=b;if(0<=O[oa].userAgent[t]("Firefox")&&![].reduce)throw new Ea(a[y]);xc(a,c)||Fa(a,c)}else throw new Da(a[y]);},wc=function(a,b){var c=Ca(oc()+"/collect?"+a);c.onload=c.onerror=function(){c.onload=null;c.onerror=null;b()}},
xc=function(a,b){var c,d=O.XDomainRequest;if(d)c=new d,c.open("POST",oc()+"/collect");else if(d=O.XMLHttpRequest)d=new d,"withCredentials"in d&&(c=d,c.open("POST",oc()+"/collect",!0),c.setRequestHeader("Content-Type","text/plain"));if(c)return c.onreadystatechange=function(){4==c.readyState&&(b(),c=null)},c.send(a),!0},Fa=function(a,b){if(M.body){a=aa(a);try{var c=M[u]('<iframe name="'+a+'"></iframe>')}catch(d){c=M[u]("iframe"),fa(c,a)}c.height="0";c.width="0";c.style.display="none";c.style.visibility=
"hidden";var e=M[B],e=oc()+"/analytics_iframe.html#"+aa(e[E]+"//"+e[x]+"/favicon.ico"),g=function(){c.src="";c[Ub]&&c[Ub].removeChild(c)};ta(O,"beforeunload",g);var ca=!1,l=0,k=function(){if(!ca){try{if(9<l||c.contentWindow[B][x]==M[B][x]){ca=!0;g();ua(O,"beforeunload",g);b();return}}catch(a){}l++;ba(k,200)}};ta(c,"load",k);M.body.appendChild(c);c.src=e}else fb(function(){Fa(a,b)})};var Ha=function(){this.t=[]};Ha[z].add=function(a){this.t[p](a)};Ha[z].execute=function(a){try{for(var b=0;b<this.t[y];b++){var c=a.get(this.t[b]);c&&K(c)&&c[C](O,a)}}catch(d){}b=a.get(Ia);b!=L&&K(b)&&(a.set(Ia,L,!0),ba(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(xa(P(a,Na)))throw"abort";}function Oa(){var a=M[B][E];if("http:"!=a&&"https:"!=a)throw"abort";}
function Pa(a){a.set(Ac,R(a,Ac)+1);var b=[];Qa.map(function(c,d){if(d.p){var e=a.get(c);void 0!=e&&e!=d[ia]&&("boolean"==typeof e&&(e*=1),b[p](d.p+"="+sa(""+e)))}});b[p]("z="+ra());a.set(Ra,b[H]("&"),!0)}function Sa(a){Ga(P(a,Ra),a.get(Ia));a.set(Ia,L,!0)}function Hc(a){var b=O.gaData;b&&(b.expId&&a.set(Nc,b.expId),b.expVar&&a.set(Oc,b.expVar))}function cd(){if(O[oa]&&"preview"==O[oa].loadPurpose)throw"abort";};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){var c=R(a,Wa),d=(new Date)[da](),e=R(a,Xa);0==e&&a.set(Xa,d);e=n.round(2*(d-e)/1E3);0<e&&(c=n.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new N},Qa=new N,Za=[];Ya[z].get=function(a){var b=$a(a),c=this[q].get(a);b&&void 0==c&&(c=K(b[ia])?b[ia]():b[ia]);return b&&b.n?b.n(this,a,c):c};var P=function(a,b){var c=a.get(b);return void 0==c?"":""+c},R=function(a,b){var c=a.get(b);return void 0==c||""===c?0:1*c};Ya[z].set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)};
var ab=function(a,b,c,d){var e=$a(b);e&&e.o?e.o(a,b,c,d):a[q].set(b,c,d)},bb=function(a,b,c,d,e){fa(this,a);this.p=b;this.n=d;this.o=e;this.defaultValue=c},$a=function(a){var b=Qa.get(a);if(!b)for(var c=0;c<Za[y];c++){var d=Za[c],e=d[0].exec(a);if(e){b=d[1](e);Qa.set(b[v],b);break}}return b},yc=function(a){var b;Qa.map(function(c,d){d.p==a&&(b=d)});return b&&b[v]},S=function(a,b,c,d,e){a=new bb(a,b,c,d,e);Qa.set(a[v],a);return a[v]},cb=function(a,b){Za[p]([ea("^"+a+"$"),b])},T=function(a,b,c){return S(a,
b,c,void 0,db)},db=function(){};var Pc;if(Pc=qa(f.GoogleAnalyticsObject)){var Qc=f.GoogleAnalyticsObject;Pc=Qc?Qc.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""}var gb=Pc||"ga",Ba=!1,hb=T("apiVersion","v"),ib=T("clientVersion","_v");S("anonymizeIp","aip");var jb=S("adSenseId","a"),Va=S("hitType","t"),Ia=S("hitCallback"),Ra=S("hitPayload");S("nonInteraction","ni");S("currencyCode","cu");S("sessionControl","sc","");S("queueTime","qt");var Ac=S("_s","_s");S("description","cd");
var kb=S("location","dl",""),lb=S("referrer","dr"),mb=S("page","dp","");S("hostname","dh");var nb=S("language","ul"),ob=S("encoding","de");S("title","dt",function(){return M.title||void 0});cb("contentGroup([0-9]+)",function(a){return new bb(a[0],"cg"+a[1])});var pb=S("screenColors","sd"),qb=S("screenResolution","sr"),rb=S("viewportSize","vp"),sb=S("javaEnabled","je"),tb=S("flashVersion","fl");S("campaignId","ci");S("campaignName","cn");S("campaignSource","cs");S("campaignMedium","cm");
S("campaignKeyword","ck");S("campaignContent","cc");var ub=S("eventCategory","ec"),xb=S("eventAction","ea"),yb=S("eventLabel","el"),zb=S("eventValue","ev"),Bb=S("socialNetwork","sn"),Cb=S("socialAction","sa"),Db=S("socialTarget","st"),Eb=S("l1","plt"),Fb=S("l2","pdt"),Gb=S("l3","dns"),Hb=S("l4","rrt"),Ib=S("l5","srt"),Jb=S("l6","tcp"),Kb=S("l7","dit"),Lb=S("l8","clt"),Mb=S("timingCategory","utc"),Nb=S("timingVar","utv"),Ob=S("timingLabel","utl"),Pb=S("timingValue","utt");S("appName","an");
S("appVersion","av","");S("appId","aid","");S("appInstallerId","aiid","");S("exDescription","exd");S("exFatal","exf");var Nc=S("expId","xid"),Oc=S("expVar","xvar"),Rc=S("_utma","_utma"),Sc=S("_utmz","_utmz"),Tc=S("_utmht","_utmht"),Ua=S("_hc",void 0,0),Xa=S("_ti",void 0,0),Wa=S("_to",void 0,20);cb("dimension([0-9]+)",function(a){return new bb(a[0],"cd"+a[1])});cb("metric([0-9]+)",function(a){return new bb(a[0],"cm"+a[1])});S("linkerParam",void 0,void 0,Bc,db);
S("usage","_u",void 0,function(){return pa.M()},db);S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){Ba=!!c});var ed=S("joinId","jid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0][F](1));c&&(b.n=function(a){return a.get(c)},b.o=function(a,b,g,ca){a.set(c,g,ca)},b.p=void 0);return b});
var Qb=T("oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=T("rateLimiterTask"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),V=T("name"),Q=T("clientId","cid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires",void 0,63072E3),$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",
void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1);function Cc(){var a=$;X("create",a,a.create,3);X("getByName",a,a.j,5);X("getAll",a,a.K,6);a=pc[z];X("get",a,a.get,7);X("set",a,a.set,4);X("send",a,a.send,2);a=Ya[z];X("get",a,a.get);X("set",a,a.set);(O.gaplugins=O.gaplugins||{}).Linker=Dc;a=Dc[z];Z.C("linker",Dc);X("decorate",a,a.Q,20);X("autoLink",a,a.S,25);Z.C("displayfeatures",fd)}
function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c[G](this,arguments)}catch(b){var g=b&&b[v];if(!(1<=100*n.random())){var ca=["t=error","_e=exc","_v=j13","sr=1"];a&&ca[p]("_f="+a);g&&ca[p]("_m="+sa(g[F](0,100)));ca[p]("aip=1");ca[p]("z="+ra());Ga(ca[H]("&"))}throw b;}}};function fc(){var a,b,c;if((c=(c=O[oa])?c.plugins:null)&&c[y])for(var d=0;d<c[y]&&!b;d++){var e=c[d];-1<e[v][t]("Shockwave Flash")&&(b=e.description)}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a.GetVariable("$version")}catch(g){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b="WIN 6,0,21,0",a.AllowScriptAccess="always",b=a.GetVariable("$version")}catch(ca){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=a.GetVariable("$version")}catch(l){}b&&
(a=b[m](/[\d]+/g))&&3<=a[y]&&(b=a[0]+"."+a[1]+" r"+a[2]);return b||void 0};var gc=function(a,b){var c=n.min(R(a,dc),100);if(!(La(P(a,Q))%100>=c)&&(c={},Ec(c)||Fc(c))){var d=c[Eb];void 0==d||Infinity==d||isNaN(d)||(0<d?(Y(c,Gb),Y(c,Jb),Y(c,Ib),Y(c,Fb),Y(c,Hb),Y(c,Kb),Y(c,Lb),b(c)):ta(O,"load",function(){gc(a,b)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance,b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;a[Jb]=b.connectEnd-b.connectStart;a[Ib]=b.responseStart-b.requestStart;
a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0};var hc=!1,mc=function(a){if("cookie"==P(a,ac)){var b=P(a,U),c;c=ka(P(a,Q));var d=ic(P(a,W)),e=jc(P(a,Yb));1<e&&(d+="-"+e);c=["GA1",d,c][H](".");var d=kc(P(a,Yb)),e=lc(P(a,W)),g=1E3*R(a,Zb);a=P(a,Na);zc(b,c,d,e,a,g)&&(hc=!0)}},nc=function(a){if("cookie"==P(a,ac)&&!hc&&(mc(a),!hc))throw"abort";},Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||eb(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date)[da](),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d[h]==b[h]&&a.set(Sc,b.R))}},Gc=function(a,b,c){for(var d=
[],e=[],g,ca=0;ca<a[y];ca++){var l=a[ca];if(l.r[c]==b)d[p](l);else void 0==g||l.r[c]<g?(e=[l],g=l.r[c]):l.r[c]==g&&e[p](l)}return 0<d[y]?d:e},lc=function(a){return 0==a[t](".")?a.substr(1):a},ic=function(a){return lc(a)[A](".")[y]},kc=function(a){if(!a)return"/";1<a[y]&&a.lastIndexOf("/")==a[y]-1&&(a=a.substr(0,a[y]-1));0!=a[t]("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a[A]("/")[y]};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=ya(a);a="__utma"==a?6:2;for(var g=0;g<e[y];g++){var ca=(""+e[g])[A](".");ca[y]>=a&&d[p]({hash:ca[0],R:e[g],O:ca})}return 0==d[y]?void 0:1==d[y]?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){var c,d;null==a?c=d=1:(c=La(a),d=La(0==a[t](".")?a[F](1):"."+a));for(var e=0;e<b[y];e++)if(b[e][h]==c||b[e][h]==d)return b[e]};function Bc(a){a=a.get(Q);var b=Ic(a,0);return"_ga=1."+sa(b+"."+a)}function Ic(a,b){for(var c=new Date,d=O.screen||{},e=O[oa],g=e.plugins||[],c=[a,e.userAgent,d.width,d.height,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b],d=0;d<g[y];++d)c[p](g[d].description);return La(c[H]("."))}var Dc=function(a){this.target=a};
Dc[z].Q=function(a,b){var c=/(.*)([?&#])(?:_ga=[^&]*)(?:&?)(.*)/.exec(a);c&&3<=c[y]&&(a=c[1]+(c[3]?c[2]+c[3]:""));var c=this.target.get("linkerParam"),d=a[t]("?"),e=a[t]("#");b?a+=(-1==e?"#":"&")+c:(d=-1==d?"?":"&",a=-1==e?a+(d+c):a[F](0,e)+d+c+a[F](e));return a};
Dc[z].S=function(a,b){function c(c){try{c=c||O.event;var g;t:{var ca=c.target||c.srcElement;for(c=100;ca&&0<c;){if(ca[Ab]&&ca.nodeName[m](/^a(?:rea)?$/i)){g=ca;break t}ca=ca[Ub];c--}g={}}if("http:"==g[E]||"https:"==g[E]){var l;t:{var k=g[ma]||"";if(k!=M[B][ma])for(ca=0;ca<a[y];ca++)if(0<=k[t](a[ca])){l=!0;break t}l=!1}l&&(g.href=d.Q(g[Ab],b))}}catch(w){J(26)}}var d=this;ta(M,"mousedown",c,!1);ta(M,"touchstart",c,!1);ta(M,"keyup",c,!1)};var gd=function(a){return a.get(V)&&"t0"!=a.get(V)?"_dc_"+ka(a.get(V)):"_dc"},hd=function(a){if(a.get(ed)){var b=new N,c=function(c){b.set($a(c).p,a.get(c))};c(hb);c(ib);c(Na);c(Q);c(ed);var d=R(a,"forceSSL")||"https:"==M[B][E]?"https:":"http:",d=d+"//stats.g.doubleclick.net/collect?t=dc&aip=1&";b.map(function(a,c){d+=sa(a)+"="+sa(""+c)+"&"});d+="z="+ra();Ca(d);a.set(ed,"",!0)}},fd=function(a){J(29);a=a.b;var b=a.get(Wb);a.set(Wb,function(a){a.get(ed)||(-1!=M[r][t](gd(a)+"=1")?a.set(ed,"",!0):(gd(a),
zc(gd(a),"1",a.get(Yb),a.get(W),a.get(Na),6E5)?a.set(ed,""+ra(),!0):J(30)));return b(a)});var c=a.get(Xb);a.set(Xb,function(a){var b=c(a);hd(a);return b})};function $c(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||ra()};var ad,bd=function(a,b,c){if(!ad){var d;d=M[B][h];var e=O[v],g=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d[m](g)||e&&e[m](g))?d[1]:ya("GASO")[0]||"")&&d[m](/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))zc("GASO",""+d,c,b,a,0),f._udo||(f._udo=b),f._utcp||(f._utcp=c),a=e[1],vc("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+ra(),"_gasojs");ad=!0}};var pc=function(a){function b(a,c){d.b[q].set(a,c)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.b=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,a[Na]);b(U,a[U]);b(W,a[W]||eb());b(Yb,a[Yb]);b(Zb,a[Zb]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(hb,1);b(ib,"j13");c(Qb,Ma);c(dd,cd);c(Rb,Oa);c(Sb,nc);c(Uc,Yc);c(Tb,Ja);c(Vb,Ta);c(Vc,Hc);c(Wb,Pa);c(Xb,Sa);Jc(this.b,a[Q]);Kc(this.b);this.b.set(jb,$c());bd(this.b.get(Na),this.b.get(W),this.b.get(Yb))},
Jc=function(a,b){if("cookie"==P(a,ac)){hc=!1;var c;i:{var d=ya(P(a,U));if(d&&!(1>d[y])){c=[];for(var e=0;e<d[y];e++){var g;g=d[e][A](".");var ca=g.shift();("GA1"==ca||"1"==ca)&&1<g[y]?(ca=g.shift()[A]("-"),1==ca[y]&&(ca[1]="1"),ca[0]*=1,ca[1]*=1,g={r:ca,s:g[H](".")}):g=void 0;g&&c[p](g)}if(1==c[y]){J(13);c=c[0].s;break i}if(0==c[y])J(12);else{J(14);d=ic(P(a,W));c=Gc(c,d,0);if(1==c[y]){c=c[0].s;break i}d=jc(P(a,Yb));c=Gc(c,d,1);c=c[0]&&c[0].s;break i}}c=void 0}c||(c=P(a,W),d=P(a,$b)||eb(),c=Xc("__utma",
d,c),(c=void 0==c?void 0:c.O[1]+"."+c.O[2])&&J(10));c&&(a[q].set(Q,c),hc=!0)}if(e=(c=M[B][Ab][m]("(?:&|\\?)_ga=([^&]*)"))&&2==c[y]?c[1]:"")a.get(bc)?(c=e[t]("."),-1==c?J(22):(d=e[F](c+1),"1"!=e[F](0,c)?J(22):(c=d[t]("."),-1==c?J(22):(e=d[F](0,c),c=d[F](c+1),e!=Ic(c,0)&&e!=Ic(c,-1)&&e!=Ic(c,-2)?J(23):(J(11),a[q].set(Q,c)))))):J(21);b&&(J(9),a[q].set(Q,sa(b)));if(!a.get(Q))if(c=(c=O.gaGlobal&&O.gaGlobal.vid)&&-1!=c[ga](/^(?:utma\.)?\d+\.\d+$/)?c:void 0)J(17),a[q].set(Q,c);else{J(8);c=O[oa];c=c.appName+
c.version+c.platform+c.userAgent+(M[r]?M[r]:"")+(M.referrer?M.referrer:"");d=c[y];for(e=O.history[y];0<e;)c+=e--^d++;a[q].set(Q,[ra()^La(c)&2147483647,n.round((new Date)[da]()/1E3)][H]("."))}mc(a)},Kc=function(a){var b=O[oa],c=O.screen,d=M[B];a.set(lb,va(a.get(ec)));d&&a.set(kb,d[E]+"//"+d[ma]+d.pathname+d[ga]);c&&a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");var c=M.documentElement,e=M.body,g=e&&e[la]&&e[na],ca=[];c&&c[la]&&c[na]&&("CSS1Compat"===M.compatMode||!g)?ca=[c[la],c[na]]:
g&&(ca=[e[la],e[na]]);c=0>=ca[0]||0>=ca[1]?"":ca[H]("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"")[I]());if(d&&a.get(cc)&&(b=M[B][h])){b=b[F](1);b=b[A]("&");d=[];for(c=0;c<b[y];++c)0!=b[c][t]("utm_id")&&0!=b[c][t]("utm_campaign")&&0!=b[c][t]("utm_source")&&0!=b[c][t]("utm_medium")&&0!=b[c][t]("utm_term")&&0!=b[c][t]("utm_content")||d[p](b[c]);0<d[y]&&(b="#"+d[H]("&"),
a.set(kb,a.get(kb)+b))}};pc[z].get=function(a){return this.b.get(a)};pc[z].set=function(a,b){this.b.set(a,b)};var qc={pageview:[mb],event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]};pc[z].send=function(a){if(!(1>arguments[y])){var b,c;"string"===typeof arguments[0]?(b=arguments[0],c=[][ha][C](arguments,1)):(b=arguments[0]&&arguments[0][Va],c=arguments);b&&(c=wa(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.execute(this.b),"pageview"==b&&Lc(this),this.b[q].m={})}};
var Lc=function(a){a.I||(a.I=!0,gc(a.b,function(b){a.send("timing",b)}))};var rc=function(a){if("prerender"==M.webkitVisibilityState)return!1;a();return!0},Mc=function(a){if(!rc(a)){J(16);var b=!1,c=function(){!b&&rc(a)&&(b=!0,ua(M,"webkitvisibilitychange",c))};ta(M,"webkitvisibilitychange",c)}};var Z={F:"/plugins/ua/",D:/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/};Z.k=new N;Z.f=[];
var sc=function(a){if(K(a[0]))this.u=a[0];else{var b=Z.D.exec(a[0]);null!=b&&4==b[y]&&(this.c=b[1]||"t0",this.e=b[2]||"",this.d=b[3],this.a=[][ha][C](a,1),this.e||(this.A="create"==this.d,this.i="require"==this.d,this.g="provide"==this.d));if(!K(a[0])){b=a[1];a=a[2];if(!this.d)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort";if(this.g&&(!qa(b)||""==b||!K(a)))throw"abort";if(0<=this.c[t](".")||0<=this.c[t](":")||0<=this.e[t](".")||0<=this.e[t](":"))throw"abort";if(this.g&&"t0"!=this.c)throw"abort";
}}};Z.B=function(a,b,c){var d=Z.k.get(a);if(!K(d))return!1;b.plugins_=b.plugins_||new N;b.plugins_.set(a,new d(b,c||{}));return!0};Z.C=function(a,b){Z.k.set(a,b)};Z.execute=function(a){var b=Z.J[G](Z,arguments),b=Z.f.concat(b);for(Z.f=[];0<b[y]&&!Z.v(b[0])&&!(b.shift(),0<Z.f[y]););Z.f=Z.f.concat(b)};
Z.J=function(a){for(var b=[],c=0;c<arguments[y];c++)try{var d=new sc(arguments[c]);if(d.g)Z.v(d);else{if(d.i){var e=d.a[1];if(!K(Z.k.get(d.a[0]))&&!d.H&&e){var g=e+"",e=g&&0<=g[t]("/")?g:"//www.google-analytics.com"+Z.F+g;var ca=tc(""+e),l;var k=ca[E],w=M[B][E];l="https:"==k||k==w?!0:"http:"!=k?!1:"http:"==w;var s;if(s=l){var g=ca,D=tc(M[B][Ab]);if(g.G||0<=g.url[t]("?")||0<=g.path[t]("://"))s=!1;else if(g[x]==D[x]&&g[ja]==D[ja])s=!0;else{var vb="http:"==g[E]?80:443;s="www.google-analytics.com"==g[x]&&
(g[ja]||vb)==vb&&0==g.path[t]("/plugins/")?!0:!1}}s&&(d.H=!!vc(ca.url))}}b[p](d)}}catch(wb){}return b};Z.v=function(a){try{if(a.u)a.u[C](O,$.j("t0"));else if(a.g)Z.C(a.a[0],a.a[1]);else{var b=a.c==gb?$:$.j(a.c);if(a.A)"t0"==a.c&&$.create[G]($,a.a);else if(b)if(a.i){if(!Z.B(a.a[0],b,a.a[2]))return!0}else a.e&&(b=b.plugins_.get(a.e)),b[a.d][G](b,a.a)}}catch(c){}};
function tc(a){function b(a){var c=(a[ma]||"")[A](":")[0][I](),b=(a[E]||"")[I](),b=1*a[ja]||("http:"==b?80:"https:"==b?443:"");a=a.pathname||"";0==a[t]("/")||(a="/"+a);return[c,""+b,a]}var c=M[u]("a");c.href=M[B][Ab];var d=(c[E]||"")[I](),e=b(c),g=c[ga]||"",ca=d+"//"+e[0]+(e[1]?":"+e[1]:"");0==a[t]("//")?a=d+a:0==a[t]("/")?a=ca+a:a&&0!=a[t]("?")?0>a[A]("/")[0][t](":")&&(a=ca+e[2][F](0,e[2].lastIndexOf("/"))+"/"+a):a=ca+e[2]+(a||g);c.href=a;d=b(c);return{protocol:(c[E]||"")[I](),host:d[0],port:d[1],
path:d[2],G:c[ga]||"",url:a||""}};var $=function(a){J(1);Z.execute[G](Z,[arguments])};$.h={};$.P=[];$.L=0;$.answer=42;var uc=[Na,W,V];$.create=function(a){var b=wa(uc,[][ha][C](arguments));b[V]||(b[V]="t0");var c=""+b[V];if($.h[c])return $.h[c];b=new pc(b);$.h[c]=b;$.P[p](b);return b};$.j=function(a){return $.h[a]};$.K=function(){return $.P[ha](0)};$.N=function(){var a=O[gb];if(!a||42!=a.answer){$.L=a&&a.l;$.loaded=!0;O[gb]=$;Cc();var b=a&&a.q;"[object Array]"==Object[z].toString[C](Object(b))&&Mc(function(){Z.execute[G]($,b)})}};
$.N();function La(a){var b=1,c=0,d;if(a)for(b=0,d=a[y]-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b;return b};})(window);
if(typeof CE2=="undefined"){CE2={}}CE2.ignoredElements=[];CE2.clickCaptors=[];CE2.d=document;CE2.w=window;CE2.n=navigator;CE2.p={};(function(){var b=CE2.n.userAgent;if(/\bMSIE\b/.test(b)){CE2.ie=1;CE2.ieVersion=parseInt(/MSIE (\d+)\.\d+/.exec(b)[1],10);CE2.ieQuirksMode=(CE2.d.compatMode=="BackCompat")}})();CE2.ignore=function(b){CE2.ignoredElements.push(b);if(CE2.tracker){CE2.tracker.ignoredElements.push(b)}};CE2.capture=function(b){CE2.clickCaptors.push(b);if(CE2.tracker){CE2.tracker.clickCaptors.push(b)}};CE2.findMatchingSnapshot=function(j,k){var l,i,g,h;for(i=0;g=CE2.snapshots[i++];){l=Math.floor(new Date().getTime()/1000);if(g.e&&g.e<=l){continue}if(k&&!/n/.test(g.o||"")){continue}if(CE2.matchURL(g.u,k||j,g.o,g.d,CE2.n.userAgent)){if(g.s&&g.s>l){CE2.p[g.id]=g}else{h=g}}}return h};CE2.startTracking=function(d){if(!CE2.sampleVisit(d)){return}CE2.testID=d.id;CE2.testVersion=d.v||1;var e=CE2.d.createElement("script");var f=CE2.w.location.protocol=="https:"?CE2.TRACKING_SCRIPT_SECURE:CE2.TRACKING_SCRIPT;if(CE2.ie){f=f.replace(/t(\.prerelease)?\.js/,"tu$1.js")}e.src=f+"?s="+d.id+"&t="+(new Date().getTime());e.type="text/javascript";CE2.d.body.appendChild(e)};CE2.unescape=function(d){try{return decodeURIComponent(d)}catch(c){return unescape(d)}};CE2.qs2obj=function(h){if(h==null||/^\s*$/.test(h)){return null}var i={},k=null,j=h.replace(/\+/g," ").split("&");for(var l=0,g=j.length;l<g;l++){k=j[l].split("=");if(!k[0]){continue}i[CE2.unescape(k[0])]=k[1]==null?null:CE2.unescape(k[1])}return i};CE2.each=function(j,l,h){if(!j){return}var k;if(typeof j.length=="number"&&typeof j.concat=="function"){for(var m=0,i=j.length;m<i;m++){k=j[m];if(l.call(h,k,m)===false){break}}}else{var n;for(n in j){k=j[n];if(k!==Object.prototype[n]){if(l.call(h,k,n)===false){break}}}}};CE2.indexOf=function(g,h,j){var i,f;for(i=j||0,f=g.length;i<f;i++){if(g[i]===h){return i}}return -1};CE2.listen=CE2.addListener=function(f,e,d){if(f.addEventListener){f.addEventListener(e,d,true)}else{f.attachEvent("on"+e,d)}};CE2.removeListener=function(f,e,d){if(f.removeEventListener){f.removeEventListener(e,d,true)}else{f.detachEvent("on"+e,d)}};CE2.userData={};CE2.set=function(d,c){d=parseInt(d,10);if(1<=d&&d<=5){CE2.userData[d]=String(c)}};CE2.click=function(){if(CE2.tracker){return CE2.tracker.click.apply(CE2.tracker,arguments)}};CE2.getBox=function(){};CE2.sampleVisit=function(b){if(b.r==null){return true}if(b.r===false||b.r===true){return b.r}if(Math.random()>=1/b.r){b.r=false;return false}else{b.r=true;return true}};if(typeof CE2=="undefined"){CE2={}}CE2.READY_STATE_PATTERN=/complete|loaded/;CE2.autoStart=(typeof CE_MANUAL_START=="undefined"||!CE_MANUAL_START);CE2.domReady=(document.readyState&&CE2.READY_STATE_PATTERN.test(document.readyState));CE2.domReadyListeners=[];CE2.onDOMReady=function(b){if(CE2.domReady){return setTimeout(b,1)}CE2.domReadyListeners.push(b)};CE2.domReadySetup=function(){var c=function(g){var b,h;var a=CE2.domReadyListeners;while(a.length>0){a.pop().call()}CE2.domReady=true};if(CE2.domReady){c()}CE2.listen(window,"load",c);if(document.addEventListener){CE2.listen(document,"DOMContentLoaded",c)}if(document.readyState){var d=CE2.READY_STATE_PATTERN;(function(){if(d.test(document.readyState)){c()}else{setTimeout(arguments.callee,10)}})()}};if(CE2.autoStart){CE2.domReadySetup()}if(typeof CE2=="undefined"){CE2={}}CE2.matchURL=function(M,D,L,I,A){var J=/(home|default|index)($|\..*)/i,K=false,S,i,H,F,z,N,R,Q,B,P,O,T,G,l,C,E;if(!(M&&D)){return false}if(I&&CE2.indexOf(I,CE2.deviceType(A))<0){return false}L=L||"";if(/n/.test(L)){return M===D}if(/[re]/.test(L)){return new RegExp(M,"i").test(D)}S=new CE2.URI(D.toLowerCase());if(/h/.test(L)&&((M.protocol)!=S.protocol)){return false}H=S.host;i=H.replace(/^www\./,"");Q=M.host;B=M.ihost;if(/w/.test(L)&&(H!=Q&&H!=B)){return false}if(i!=Q.replace(/^www\./,"")&&i!=(B&&B.replace(/^www\./,""))){return false}if(!M.path){P="/"}else{P=M.path}F=S.path;if(P!=F){if(/\
(function(){var a=function(){var m=this;var v="tracker.marinsm.com";var E="l3kk1yxn00";
var F=365;var x=[];var n=false;var l=function(){var H=[];return H};this.setClientId=function(H){E=H
};this.activateAnonymizeIp=function(){n=true};var C=function(){return E};this.setHost=function(H){v=H
};var e=function(){return v};this.setExpires=function(H){F=H};var i=function(){var H=new Date();
H.setTime(H.getTime()+(F*24*60*60*1000));return"; expires="+H.toUTCString()};var B=function(){var H=new Date();
return H.getTimezoneOffset()/60};var c=function(H){return(typeof H==="function")||(!!H&&typeof H!="string"&&!H.nodeName&&H.constructor!=Array&&/^[\s[]?function/.test(H+""))
};var d=function(I,H){if(!I){return""}var J=encodeURIComponent;if(c(J)){return H?encodeURI(I):J(I)
}return escape(I)};this.trackPage=function(){if(s()){var H=window.location.protocol+"//"+e()+"/tp?act=1&cid="+d(C())+"&tz="+d(B())+"&ref="+d(document.referrer)+"&page="+d(window.location);
if(t()){H+="&uuid="+d(w())}else{H+="&uuid="+d(G())}if(n){H+="&anonymizeIp=set"}g(H)
}};var s=function(){var H=p(window.location.toString())||p(document.referrer)||!r(document.referrer,window.location.toString());
if(!t()){u("_msuuid",G())}return H};var r=function(I,H){var K=/^([^:]*:\/\/)?([^:]*:[^@]*@)?([^\/:\?]*\.[^\/:\?]*)?(:[^\/]*)?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i;
try{return I.match(K)[3]==H.match(K)[3]}catch(J){}return false};var j=function(H){var I=H.indexOf("/","https://".length);
var J=H.indexOf("?","https://".length);if(I>=0){return H.substring(I+1)}else{if(J>=0){return H.substring(J+1)
}}return""};var f=function(H,I){var J=j(I);if(J.length>0){var K=new RegExp("\\W"+H+"\\W");
return K.test(J)}return false};var p=function(K){if(K==null||K==""){return false}var I=l();
for(var J=0,H=I.length;J<H;J++){if(f(I[J],K)){return true}}return false};this.addTrans=function(H){if(H!=null){x.push(H)
}};this.processOrders=function(){for(var I=0;I<x.length;++I){var H=k(x[I]);g(H)}};
var k=function(K){var J=q(K);var I=window.location.protocol+"//"+e()+"/tp?act=2&cid="+d(C())+"&tz="+d(B())+"&trans="+d(J)+"&ref="+d(document.referrer)+"&page="+d(window.location);
var H=h(K);if(H!=null){I=I+"&currency="+d(H)}if(t()){I+="&uuid="+d(w())}else{I+="&uuid="+d(G())
}if(n){I+="&anonymizeIp=set"}return I};var q=function(O){var M="";var J=O.orderId;
if(typeof O.items!="undefined"){var K=O.items;try{for(var L=0,I=K.length;L<I;++L){M+=D(K[L],J)
}}catch(N){}}var H=(M==="");M=A(O,H)+M;return M};var A=function(M,I){var H=["orderId","affiliation","total","tax","shipping","city","state","country"];
var J=["UTM:T"];var L=false;for(var K=0;K<H.length;++K){if(typeof M[H[K]]!="undefined"){J.push(M[H[K]]);
L=true}else{J.push("")}}return(L||I)?J.join("|")+"\n":""};var D=function(L,H){var N=["convType","product","category","price","quantity"];
var I=["UTM:I"];var K=L.orderId||H||"";I.push(K);var M=false;for(var J=0;J<N.length;
++J){if(typeof L[N[J]]!="undefined"){I.push(L[N[J]]);M=true}else{I.push("")}}return M?I.join("|")+"\n":""
};var h=function(H){if(typeof H.currency=="undefined"){return null}return H.currency
};var z=function(H){var M=null;if(document.cookie&&document.cookie!=""){var K=document.cookie.split(";");
for(var J=0;J<K.length;J++){var I=K[J];I=I.replace(/^\s+/,"");var L=H+"_"+C();if((I.substring(0,L.length+1))==(L+"=")){M=decodeURIComponent(I.substring(L.length+1));
break}}}return M};var u=function(H,I){if(I!=null&&I!=""){document.cookie=H+"_"+C()+"="+d(I)+"; path=/"+i()
}};var o=function(){};this.registerCallback=function(H){if(typeof H==="function"){o=H
}};var g=function(H){var J=H+"&rnd="+Math.round(Math.random()*2147483647);var I=new Image(1,1);
I.src=J;I.onload=function(){I.onload=null;o(this)}};var w=function(){return z("_msuuid")
};var t=function(){var H=w();return(H!=null&&H.length>0)};var G=function(){var N="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
var M=N,K=[],I=Math.random;var J=M.length;var L;K[8]=K[13]=K[18]=K[23]="-";K[14]="4";
for(var H=0;H<36;H++){if(!K[H]){L=0|I()*16;K[H]=M[(H==19)?(L&3)|8:L&15]}}return K.join("")
};var y=function(H){try{return m[H[0]].apply(m,H.slice(1))}catch(I){}};this.execQueue=function(){var H=window._mTrack||[];
while(H.length>0){var I=H.shift();y(I)}};return this};var b=new a();if(typeof window._mTrack=="undefined"){window._mTrack=[]
}window._mTrack.push=function(c){Array.prototype.push.apply(window._mTrack,arguments);
b.execQueue()};b.execQueue()})();
<!--
document.write('<img src="https://rs.gwallet.com/r1/pixel/x7577r'+Math.round(Math.random()*10000000)+'" width="1" height="1" border="0" alt=""/>');
var google_conversion_id = 1011842940;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "rYoHCJSw7wEQ_P694gM";
var google_conversion_value = 0;
(function(){var f=this;var h=parseFloat("0.06"),k=isNaN(h)||1<h||0>h?0:h;var l=function(a,b){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&b.call(null,a[d],d,a)};var m,n,p,q,r=function(){return f.navigator?f.navigator.userAgent:null};q=p=n=m=!1;var s;if(s=r()){var t=f.navigator;m=0==s.lastIndexOf("Opera",0);n=!m&&(-1!=s.indexOf("MSIE")||-1!=s.indexOf("Trident"));p=!m&&-1!=s.indexOf("WebKit");q=!m&&!p&&!n&&"Gecko"==t.product}var u=n,v=q,w=p;var x;if(m&&f.opera){var y=f.opera.version;"function"==typeof y&&y()}else v?x=/rv\:([^\);]+)(\)|;)/:u?x=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:w&&(x=/WebKit\/(\S+)/),x&&x.exec(r());var z=function(a){this.b=[];this.a={};for(var b=0,d=arguments.length;b<d;++b)this.a[arguments[b]]=""},B=function(){var a=A,b="317150500 317150501 317150502 317150503 317150504 317150505".split(" "),d;if(d=a.a.hasOwnProperty(1)&&""==a.a[1])d=!(1E-4>Math.random())&&Math.random()<k;d&&(b=b[Math.floor(Math.random()*b.length)],""!=b&&a.a.hasOwnProperty(1)&&(a.a[1]=b))};z.prototype.c=function(a){return this.a.hasOwnProperty(a)?this.a[a]:""};z.prototype.geil=z.prototype.c;
var C=function(){var a=A,b=[];l(a.a,function(a){""!=a&&b.push(a)});return 0<a.b.length&&0<b.length?a.b.join(",")+","+b.join(","):a.b.join(",")+b.join(",")};var A,D="google_conversion_id google_conversion_format google_conversion_type google_conversion_order_id google_conversion_language google_conversion_value google_conversion_domain google_conversion_label google_conversion_color google_disable_viewthrough google_remarketing_only google_remarketing_for_search google_conversion_items google_custom_params google_conversion_date google_conversion_time google_conversion_js_version onload_callback opt_image_generator google_is_call google_conversion_page_url".split(" ");
function E(a){return null!=a?escape(a.toString()):""}function F(a,b){var d=E(b);if(""!=d){var c=E(a);if(""!=c)return"&".concat(c,"=",d)}return""}function H(a){var b=typeof a;return null==a||"object"==b||"function"==b?null:String(a).replace(/,/g,"\\,").replace(/;/g,"\\;").replace(/=/g,"\\=")}
function I(a){var b;if((a=a.google_custom_params)&&"object"==typeof a&&"function"!=typeof a.join){var d=[];for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];if(c&&"function"==typeof c.join){for(var e=[],g=0;g<c.length;++g){var G=H(c[g]);null!=G&&e.push(G)}c=0==e.length?null:e.join(",")}else c=H(c);(e=H(b))&&null!=c&&d.push(e+"="+c)}b=d.join(";")}else b="";return""==b?"":"&".concat("data=",encodeURIComponent(b))}
function J(a){return"number"!=typeof a&&"string"!=typeof a?"":E(a.toString())}function K(a){if(!a)return"";a=a.google_conversion_items;if(!a)return"";for(var b=[],d=0,c=a.length;d<c;d++){var e=a[d],g=[];e&&(g.push(J(e.value)),g.push(J(e.quantity)),g.push(J(e.item_id)),g.push(J(e.adwords_grouping)),g.push(J(e.sku)),b.push("("+g.join("*")+")"))}return 0<b.length?"&item="+b.join(""):""}
function L(a,b,d){var c=[];if(a){var e=a.screen;e&&(c.push(F("u_h",e.height)),c.push(F("u_w",e.width)),c.push(F("u_ah",e.availHeight)),c.push(F("u_aw",e.availWidth)),c.push(F("u_cd",e.colorDepth)));a.history&&c.push(F("u_his",a.history.length))}d&&"function"==typeof d.getTimezoneOffset&&c.push(F("u_tz",-d.getTimezoneOffset()));b&&("function"==typeof b.javaEnabled&&c.push(F("u_java",b.javaEnabled())),b.plugins&&c.push(F("u_nplug",b.plugins.length)),b.mimeTypes&&c.push(F("u_nmime",b.mimeTypes.length)));
return c.join("")}function M(a,b,d){var c="";if(b){var c=c+F("ref",null!=b.referrer?b.referrer.toString().substring(0,256):""),e;if(a.top==a)e=0;else if(b=a.location.ancestorOrigins)e=b[b.length-1]==a.location.origin?1:2;else{b=a.top;try{e=!!b.location.href||""===b.location.href}catch(g){e=!1}e=e?1:2}b="";b=d?d:1==e?a.top.location.href:a.location.href;c+=F("url",null!=b?b.toString().substring(0,256):"");c+=F("frm",e)}return c}
function N(a){return a&&a.location&&a.location.protocol&&"https:"==a.location.protocol.toString().toLowerCase()?"https:":"http:"}function O(a){return a.google_remarketing_only?"googleads.g.doubleclick.net":a.google_conversion_domain||"www.googleadservices.com"}
function P(a,b,d,c){var e="/?";"landing"==c.google_conversion_type&&(e="/extclk?");var e=N(a)+"//"+O(c)+"/pagead/"+[c.google_remarketing_only?"viewthroughconversion/":"conversion/",E(c.google_conversion_id),e,"random=",E(c.google_conversion_time)].join(""),g;r:{g=c.google_conversion_language;if(null!=g){g=g.toString();if(2==g.length){g=F("hl",g);break r}if(5==g.length){g=F("hl",g.substring(0,2))+F("gl",g.substring(3,5));break r}}g=""}return e+=[F("cv",c.google_conversion_js_version),F("fst",c.google_conversion_first_time),
F("num",c.google_conversion_snippets),F("fmt",c.google_conversion_format),F("value",c.google_conversion_value),F("label",c.google_conversion_label),F("oid",c.google_conversion_order_id),F("bg",c.google_conversion_color),g,F("guid","ON"),F("disvt",c.google_disable_viewthrough),F("is_call",c.google_is_call),K(c),L(a,b,c.google_conversion_date),M(a,d,c.google_conversion_page_url),I(c),c.google_remarketing_for_search&&!c.google_conversion_domain?"&srr=n":"",F("eid",C())].join("")}
function Q(){var a=R,b=S,d=N(a)+"//www.google.com/ads/user-lists/"+[E(b.google_conversion_id),"/?random=",Math.floor(1E9*Math.random())].join("");return d+=[F("label",b.google_conversion_label),F("fmt","3"),M(a,document,b.google_conversion_page_url)].join("")}
function T(){var a=R,b=navigator,d=document,c=R;3!=c.google_conversion_format||c.google_remarketing_only||c.google_conversion_domain||A&&B();var e=A?A.c(1):"",b=P(a,b,d,c),d=function(a,b,c){return'<img height="'+c+'" width="'+b+'" border="0" alt="" src="'+a+'" />'};return 0==c.google_conversion_format&&null==c.google_conversion_domain?'<a href="'+(N(a)+"//services.google.com/sitestats/"+({ar:1,bg:1,cs:1,da:1,de:1,el:1,en_AU:1,en_US:1,en_GB:1,es:1,et:1,fi:1,fr:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,iw:1,
ja:1,ko:1,lt:1,nl:1,no:1,pl:1,pt_BR:1,pt_PT:1,ro:1,ru:1,sk:1,sl:1,sr:1,sv:1,th:1,tl:1,tr:1,vi:1,zh_CN:1,zh_TW:1}[c.google_conversion_language]?c.google_conversion_language+".html":"en_US.html")+"?cid="+E(c.google_conversion_id))+'" target="_blank">'+d(b,135,27)+"</a>":1<c.google_conversion_snippets||3==c.google_conversion_format?"317150501"==e||"317150502"==e||"317150503"==e||"317150504"==e||"317150505"==e?d(b,1,1)+('<script src="'+b.replace(/(&|\?)fmt=3(&|$)/,"$1fmt=4&adtest=on$2")+'">\x3c/script>'):
d(b,1,1):'<iframe name="google_conversion_frame" title="Google conversion frame" width="'+(2==c.google_conversion_format?200:300)+'" height="'+(2==c.google_conversion_format?26:13)+'" src="'+b+'" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">'+d(b.replace(/\?random=/,"?frame=0&random="),1,1)+"</iframe>"}function U(){return new Image}
function V(){var a=S,b=Q(),d=U;"function"===typeof a.opt_image_generator&&(d=a.opt_image_generator);a=d();b+=F("async","1");a.src=b;a.onload=function(){}};var R=window;
if(R)if(null!=/[\?&;]google_debug/.exec(document.URL)){var aa=R,W=document.getElementsByTagName("head")[0];W||(W=document.createElement("head"),document.getElementsByTagName("html")[0].insertBefore(W,document.getElementsByTagName("body")[0]));var X=document.createElement("script");X.src=N(window)+"//"+O(aa)+"/pagead/conversion_debug_overlay.js";W.appendChild(X)}else{try{var Y;var Z=R;"landing"==Z.google_conversion_type||!Z.google_conversion_id||Z.google_remarketing_only&&Z.google_disable_viewthrough?Y=
!1:(Z.google_conversion_date=new Date,Z.google_conversion_time=Z.google_conversion_date.getTime(),Z.google_conversion_snippets="number"==typeof Z.google_conversion_snippets&&0<Z.google_conversion_snippets?Z.google_conversion_snippets+1:1,"number"!=typeof Z.google_conversion_first_time&&(Z.google_conversion_first_time=Z.google_conversion_time),Z.google_conversion_js_version="7",0!=Z.google_conversion_format&&1!=Z.google_conversion_format&&2!=Z.google_conversion_format&&3!=Z.google_conversion_format&&
(Z.google_conversion_format=1),A=new z(1),Y=!0);if(Y&&(document.write(T()),R.google_remarketing_for_search&&!R.google_conversion_domain)){var S=R;V()}}catch(ba){}for(var ca=R,$=0;$<D.length;$++)ca[D[$]]=null};})();
((function(){var reqwest=function(){function handleReadyState(a,b,c){return function(){a&&a[readyState]==4&&(twoHundo.test(a.status)?b(a):c(a))}}function setHeaders(a,b){var c=b.headers||{},d;c.Accept=c.Accept||defaultHeaders.accept[b.type]||defaultHeaders.accept["*"],!b.crossOrigin&&!c[requestedWith]&&(c[requestedWith]=defaultHeaders.requestedWith),c[contentType]||(c[contentType]=b.contentType||defaultHeaders.contentType);for(d in c)c.hasOwnProperty(d)&&a.setRequestHeader(d,c[d])}function generalCallback(a){lastValue=a}function urlappend(a,b){return a+(/\?/.test(a)?"&":"?")+b}function handleJsonp(a,b,c,d){var e=uniqid++,f=a.jsonpCallback||"callback",g=a.jsonpCallbackName||"reqwest_"+e,h=new RegExp("((^|\\?|&)"+f+")=([^&]+)"),i=d.match(h),j=doc.createElement("script"),k=0;i?i[3]==="?"?d=d.replace(h,"$1="+g):g=i[3]:d=urlappend(d,f+"="+g),win[g]=generalCallback,j.type="text/javascript",j.src=d,j.async=!0,typeof j.onreadystatechange!="undefined"&&(j.event="onclick",j.htmlFor=j.id="_reqwest_"+e),j.onload=j.onreadystatechange=function(){if(j[readyState]&&j[readyState]!=="complete"&&j[readyState]!=="loaded"||k)return!1;j.onload=j.onreadystatechange=null,j.onclick&&j.onclick(),a.success&&a.success(lastValue),lastValue=undefined,head.removeChild(j),k=1},head.appendChild(j)}function getRequest(a,b,c){var d=(a.method||"GET").toUpperCase(),e=typeof a=="string"?a:a.url,f=a.processData!==!1&&a.data&&typeof a.data!="string"?reqwest.toQueryString(a.data):a.data||null,g;return(a.type=="jsonp"||d=="GET")&&f&&(e=urlappend(e,f),f=null),a.type=="jsonp"?handleJsonp(a,b,c,e):(g=xhr(),g.open(d,e,!0),setHeaders(g,a),g.onreadystatechange=handleReadyState(g,b,c),a.before&&a.before(g),g.send(f),g)}function Reqwest(a,b){this.o=a,this.fn=b,init.apply(this,arguments)}function setType(a){var b=a.match(/\.(json|jsonp|html|xml)(\?|$)/);return b?b[1]:"js"}function init(o,fn){function complete(a){o.timeout&&clearTimeout(self.timeout),self.timeout=null,o.complete&&o.complete(a)}function success(resp){var r=resp.responseText;if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r}fn(resp),o.success&&o.success(resp),complete(resp)}function error(a,b,c){o.error&&o.error(a,b,c),complete(a)}this.url=typeof o=="string"?o:o.url,this.timeout=null;var type=o.type||setType(this.url),self=this;fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort()},o.timeout)),this.request=getRequest(o,success,error)}function reqwest(a,b){return new Reqwest(a,b)}function normalize(a){return a?a.replace(/\r?\n/g,"\r\n"):""}function serial(a,b){var c=a.name,d=a.tagName.toLowerCase(),e=function(a){a&&!a.disabled&&b(c,normalize(a.attributes.value&&a.attributes.value.specified?a.value:a.text))};if(a.disabled||!c)return;switch(d){case"input":if(!/reset|button|image|file/i.test(a.type)){var f=/checkbox/i.test(a.type),g=/radio/i.test(a.type),h=a.value;(!f&&!g||a.checked)&&b(c,normalize(f&&h===""?"on":h))}break;case"textarea":b(c,normalize(a.value));break;case"select":if(a.type.toLowerCase()==="select-one")e(a.selectedIndex>=0?a.options[a.selectedIndex]:null);else for(var i=0;a.length&&i<a.length;i++)a.options[i].selected&&e(a.options[i])}}function eachFormElement(){var a=this,b,c,d,e=function(b,c){for(var e=0;e<c.length;e++){var f=b[byTag](c[e]);for(d=0;d<f.length;d++)serial(f[d],a)}};for(c=0;c<arguments.length;c++)b=arguments[c],/input|select|textarea/i.test(b.tagName)&&serial(b,a),e(b,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var a={};return eachFormElement.apply(function(b,c){b in a?(a[b]&&!isArray(a[b])&&(a[b]=[a[b]]),a[b].push(c)):a[b]=c},arguments),a}var context=this,win=window,doc=document,old=context.reqwest,twoHundo=/^20\d$/,byTag="getElementsByTagName",readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",head=doc[byTag]("head")[0],uniqid=0,lastValue,xmlHttpRequest="XMLHttpRequest",isArray=typeof Array.isArray=="function"?Array.isArray:function(a){return a instanceof Array},defaultHeaders={contentType:"application/x-www-form-urlencoded",accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"},requestedWith:xmlHttpRequest},xhr=win[xmlHttpRequest]?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")};return Reqwest.prototype={abort:function(){this.request.abort()},retry:function(){init.call(this,this.o,this.fn)}},reqwest.serializeArray=function(){var a=[];return eachFormElement.apply(function(b,c){a.push({name:b,value:c})},arguments),a},reqwest.serialize=function(){if(arguments.length===0)return"";var a,b,c=Array.prototype.slice.call(arguments,0);return a=c.pop(),a&&a.nodeType&&c.push(a)&&(a=null),a&&(a=a.type),a=="map"?b=serializeHash:a=="array"?b=reqwest.serializeArray:b=serializeQueryString,b.apply(null,c)},reqwest.toQueryString=function(a){var b="",c,d=encodeURIComponent,e=function(a,c){b+=d(a)+"="+d(c)+"&"};if(isArray(a))for(c=0;a&&c<a.length;c++)e(a[c].name,a[c].value);else for(var f in a){if(!Object.hasOwnProperty.call(a,f))continue;var g=a[f];if(isArray(g))for(c=0;c<g.length;c++)e(f,g[c]);else e(f,a[f])}return b.replace(/&$/,"").replace(/%20/g,"+")},reqwest.compat=function(a,b){return a&&(a.type&&(a.method=a.type)&&delete a.type,a.dataType&&(a.type=a.dataType),a.jsonpCallback&&(a.jsonpCallbackName=a.jsonpCallback)&&delete a.jsonpCallback,a.jsonp&&(a.jsonpCallback=a.jsonp)),new Reqwest(a,b)},reqwest}();((function(){function a(b,c,d){if(b===c)return 0!==b||1/b==1/c;if(null==b||null==c)return b===c;b._chain&&(b=b._wrapped),c._chain&&(c=c._wrapped);if(b.isEqual&&v.isFunction(b.isEqual))return b.isEqual(c);if(c.isEqual&&v.isFunction(c.isEqual))return c.isEqual(b);var e=i.call(b);if(e!=i.call(c))return!1;switch(e){case"[object String]":return b==""+c;case"[object Number]":return b!=+b?c!=+c:0==b?1/b==1/c:b==+c;case"[object Date]":case"[object Boolean]":return+b==+c;case"[object RegExp]":return b.source==c.source&&b.global==c.global&&b.multiline==c.multiline&&b.ignoreCase==c.ignoreCase}if("object"!=typeof b||"object"!=typeof c)return!1;for(var f=d.length;f--;)if(d[f]==b)return!0;d.push(b);var f=0,g=!0;if("[object Array]"==e){if(f=b.length,g=f==c.length)for(;f--&&(g=f in b==f in c&&a(b[f],c[f],d)););}else{if("constructor"in b!="constructor"in c||b.constructor!=c.constructor)return!1;for(var h in b)if(v.has(b,h)&&(f++,!(g=v.has(c,h)&&a(b[h],c[h],d))))break;if(g){for(h in c)if(v.has(c,h)&&!(f--))break;g=!f}}return d.pop(),g}var b=this,c=b._,d={},e=Array.prototype,f=Object.prototype,g=e.slice,h=e.unshift,i=f.toString,j=f.hasOwnProperty,k=e.forEach,l=e.map,m=e.reduce,n=e.reduceRight,o=e.filter,p=e.every,q=e.some,r=e.indexOf,s=e.lastIndexOf,f=Array.isArray,t=Object.keys,u=Function.prototype.bind,v=function(a){return new G(a)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):b._=v,v.VERSION="1.3.3";var w=v.each=v.forEach=function(a,b,c){if(a!=null)if(k&&a.forEach===k)a.forEach(b,c);else if(a.length===+a.length){for(var e=0,f=a.length;e<f;e++)if(e in a&&b.call(c,a[e],e,a)===d)break}else for(e in a)if(v.has(a,e)&&b.call(c,a[e],e,a)===d)break};v.map=v.collect=function(a,b,c){var d=[];return a==null?d:l&&a.map===l?a.map(b,c):(w(a,function(a,e,f){d[d.length]=b.call(c,a,e,f)}),a.length===+a.length&&(d.length=a.length),d)},v.reduce=v.foldl=v.inject=function(a,b,c,d){var e=arguments.length>2;a==null&&(a=[]);if(m&&a.reduce===m)return d&&(b=v.bind(b,d)),e?a.reduce(b,c):a.reduce(b);w(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)});if(!e)throw new TypeError("Reduce of empty array with no initial value");return c},v.reduceRight=v.foldr=function(a,b,c,d){var e=arguments.length>2;a==null&&(a=[]);if(n&&a.reduceRight===n)return d&&(b=v.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=v.toArray(a).reverse();return d&&!e&&(b=v.bind(b,d)),e?v.reduce(f,b,c,d):v.reduce(f,b)},v.find=v.detect=function(a,b,c){var d;return x(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,!0}),d},v.filter=v.select=function(a,b,c){var d=[];return a==null?d:o&&a.filter===o?a.filter(b,c):(w(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)}),d)},v.reject=function(a,b,c){var d=[];return a==null?d:(w(a,function(a,e,f){b.call(c,a,e,f)||(d[d.length]=a)}),d)},v.every=v.all=function(a,b,c){var e=!0;return a==null?e:p&&a.every===p?a.every(b,c):(w(a,function(a,f,g){if(!(e=e&&b.call(c,a,f,g)))return d}),!!e)};var x=v.some=v.any=function(a,b,c){b||(b=v.identity);var e=!1;return a==null?e:q&&a.some===q?a.some(b,c):(w(a,function(a,f,g){if(e||(e=b.call(c,a,f,g)))return d}),!!e)};v.include=v.contains=function(a,b){var c=!1;return a==null?c:r&&a.indexOf===r?a.indexOf(b)!=-1:c=x(a,function(a){return a===b})},v.invoke=function(a,b){var c=g.call(arguments,2);return v.map(a,function(a){return(v.isFunction(b)?b||a:a[b]).apply(a,c)})},v.pluck=function(a,b){return v.map(a,function(a){return a[b]})},v.max=function(a,b,c){if(!b&&v.isArray(a)&&a[0]===+a[0])return Math.max.apply(Math,a);if(!b&&v.isEmpty(a))return-Infinity;var d={computed:-Infinity};return w(a,function(a,e,f){e=b?b.call(c,a,e,f):a,e>=d.computed&&(d={value:a,computed:e})}),d.value},v.min=function(a,b,c){if(!b&&v.isArray(a)&&a[0]===+a[0])return Math.min.apply(Math,a);if(!b&&v.isEmpty(a))return Infinity;var d={computed:Infinity};return w(a,function(a,e,f){e=b?b.call(c,a,e,f):a,e<d.computed&&(d={value:a,computed:e})}),d.value},v.shuffle=function(a){var b=[],c;return w(a,function(a,d){c=Math.floor(Math.random()*(d+1)),b[d]=b[c],b[c]=a}),b},v.sortBy=function(a,b,c){var d=v.isFunction(b)?b:function(a){return a[b]};return v.pluck(v.map(a,function(a,b,e){return{value:a,criteria:d.call(c,a,b,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c===void 0?1:d===void 0?-1:c<d?-1:c>d?1:0}),"value")},v.groupBy=function(a,b){var c={},d=v.isFunction(b)?b:function(a){return a[b]};return w(a,function(a,b){var e=d(a,b);(c[e]||(c[e]=[])).push(a)}),c},v.sortedIndex=function(a,b,c){c||(c=v.identity);for(var d=0,e=a.length;d<e;){var f=d+e>>1;c(a[f])<c(b)?d=f+1:e=f}return d},v.toArray=function(a){return a?v.isArray(a)||v.isArguments(a)?g.call(a):a.toArray&&v.isFunction(a.toArray)?a.toArray():v.values(a):[]},v.size=function(a){return v.isArray(a)?a.length:v.keys(a).length},v.first=v.head=v.take=function(a,b,c){return b!=null&&!c?g.call(a,0,b):a[0]},v.initial=function(a,b,c){return g.call(a,0,a.length-(b==null||c?1:b))},v.last=function(a,b,c){return b!=null&&!c?g.call(a,Math.max(a.length-b,0)):a[a.length-1]},v.rest=v.tail=function(a,b,c){return g.call(a,b==null||c?1:b)},v.compact=function(a){return v.filter(a,function(a){return!!a})},v.flatten=function(a,b){return v.reduce(a,function(a,c){return v.isArray(c)?a.concat(b?c:v.flatten(c)):(a[a.length]=c,a)},[])},v.without=function(a){return v.difference(a,g.call(arguments,1))},v.uniq=v.unique=function(a,b,c){var c=c?v.map(a,c):a,d=[];return a.length<3&&(b=!0),v.reduce(c,function(c,e,f){if(b?v.last(c)!==e||!c.length:!v.include(c,e))c.push(e),d.push(a[f]);return c},[]),d},v.union=function(){return v.uniq(v.flatten(arguments,!0))},v.intersection=v.intersect=function(a){var b=g.call(arguments,1);return v.filter(v.uniq(a),function(a){return v.every(b,function(b){return v.indexOf(b,a)>=0})})},v.difference=function(a){var b=v.flatten(g.call(arguments,1),!0);return v.filter(a,function(a){return!v.include(b,a)})},v.zip=function(){for(var a=g.call(arguments),b=v.max(v.pluck(a,"length")),c=Array(b),d=0;d<b;d++)c[d]=v.pluck(a,""+d);return c},v.indexOf=function(a,b,c){if(a==null)return-1;var d;if(c)return c=v.sortedIndex(a,b),a[c]===b?c:-1;if(r&&a.indexOf===r)return a.indexOf(b);c=0;for(d=a.length;c<d;c++)if(c in a&&a[c]===b)return c;return-1},v.lastIndexOf=function(a,b){if(a==null)return-1;if(s&&a.lastIndexOf===s)return a.lastIndexOf(b);for(var c=a.length;c--;)if(c in a&&a[c]===b)return c;return-1},v.range=function(a,b,c){arguments.length<=1&&(b=a||0,a=0);for(var c=arguments[2]||1,d=Math.max(Math.ceil((b-a)/c),0),e=0,f=Array(d);e<d;)f[e++]=a,a+=c;return f};var y=function(){};v.bind=function(a,b){var c,d;if(a.bind===u&&u)return u.apply(a,g.call(arguments,1));if(!v.isFunction(a))throw new TypeError;return d=g.call(arguments,2),c=function(){if(this instanceof c){y.prototype=a.prototype;var e=new y,f=a.apply(e,d.concat(g.call(arguments)));return Object(f)===f?f:e}return a.apply(b,d.concat(g.call(arguments)))}},v.bindAll=function(a){var b=g.call(arguments,1);return b.length==0&&(b=v.functions(a)),w(b,function(b){a[b]=v.bind(a[b],a)}),a},v.memoize=function(a,b){var c={};return b||(b=v.identity),function(){var d=b.apply(this,arguments);return v.has(c,d)?c[d]:c[d]=a.apply(this,arguments)}},v.delay=function(a,b){var c=g.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)},v.defer=function(a){return v.delay.apply(v,[a,1].concat(g.call(arguments,1)))},v.throttle=function(a,b){var c,d,e,f,g,h,i=v.debounce(function(){g=f=!1},b);return function(){return c=this,d=arguments,e||(e=setTimeout(function(){e=null,g&&a.apply(c,d),i()},b)),f?g=!0:h=a.apply(c,d),i(),f=!0,h}},v.debounce=function(a,b,c){var d;return function(){var e=this,f=arguments;c&&!d&&a.apply(e,f),clearTimeout(d),d=setTimeout(function(){d=null,c||a.apply(e,f)},b)}},v.once=function(a){var b=!1,c;return function(){return b?c:(b=!0,c=a.apply(this,arguments))}},v.wrap=function(a,b){return function(){var c=[a].concat(g.call(arguments,0));return b.apply(this,c)}},v.compose=function(){var a=arguments;return function(){for(var b=arguments,c=a.length-1;c>=0;c--)b=[a[c].apply(this,b)];return b[0]}},v.after=function(a,b){return a<=0?b():function(){if(--a<1)return b.apply(this,arguments)}},v.keys=t||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],c;for(c in a)v.has(a,c)&&(b[b.length]=c);return b},v.values=function(a){return v.map(a,v.identity)},v.functions=v.methods=function(a){var b=[],c;for(c in a)v.isFunction(a[c])&&b.push(c);return b.sort()},v.extend=function(a){return w(g.call(arguments,1),function(b){for(var c in b)a[c]=b[c]}),a},v.pick=function(a){var b={};return w(v.flatten(g.call(arguments,1)),function(c){c in a&&(b[c]=a[c])}),b},v.defaults=function(a){return w(g.call(arguments,1),function(b){for(var c in b)a[c]==null&&(a[c]=b[c])}),a},v.clone=function(a){return v.isObject(a)?v.isArray(a)?a.slice():v.extend({},a):a},v.tap=function(a,b){return b(a),a},v.isEqual=function(b,c){return a(b,c,[])},v.isEmpty=function(a){if(a==null)return!0;if(v.isArray(a)||v.isString(a))return a.length===0;for(var b in a)if(v.has(a,b))return!1;return!0},v.isElement=function(a){return!!a&&a.nodeType==1},v.isArray=f||function(a){return i.call(a)=="[object Array]"},v.isObject=function(a){return a===Object(a)},v.isArguments=function(a){return i.call(a)=="[object Arguments]"},v.isArguments(arguments)||(v.isArguments=function(a){return!!a&&!!v.has(a,"callee")}),v.isFunction=function(a){return i.call(a)=="[object Function]"},v.isString=function(a){return i.call(a)=="[object String]"},v.isNumber=function(a){return i.call(a)=="[object Number]"},v.isFinite=function(a){return v.isNumber(a)&&isFinite(a)},v.isNaN=function(a){return a!==a},v.isBoolean=function(a){return a===!0||a===!1||i.call(a)=="[object Boolean]"},v.isDate=function(a){return i.call(a)=="[object Date]"},v.isRegExp=function(a){return i.call(a)=="[object RegExp]"},v.isNull=function(a){return a===null},v.isUndefined=function(a){return a===void 0},v.has=function(a,b){return j.call(a,b)},v.noConflict=function(){return b._=c,this},v.identity=function(a){return a},v.times=function(a,b,c){for(var d=0;d<a;d++)b.call(c,d)},v.escape=function(a){return(""+a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},v.result=function(a,b){if(a==null)return null;var c=a[b];return v.isFunction(c)?c.call(a):c},v.mixin=function(a){w(v.functions(a),function(b){I(b,v[b]=a[b])})};var z=0;v.uniqueId=function(a){var b=z++;return a?a+b:b},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/.^/,B={"\\":"\\","'":"'",r:"\r",n:"\n",t:"\t",u2028:"\u2028",u2029:"\u2029"},C;for(C in B)B[B[C]]=C;var D=/\\|'|\r|\n|\t|\u2028|\u2029/g,E=/\\(\\|'|r|n|t|u2028|u2029)/g,F=function(a){return a.replace(E,function(a,b){return B[b]})};v.template=function(a,b,c){c=v.defaults(c||{},v.templateSettings),a="__p+='"+a.replace(D,function(a){return"\\"+B[a]}).replace(c.escape||A,function(a,b){return"'+\n_.escape("+F(b)+")+\n'"}).replace(c.interpolate||A,function(a,b){return"'+\n("+F(b)+")+\n'"}).replace(c.evaluate||A,function(a,b){return"';\n"+F(b)+"\n;__p+='"})+"';\n",c.variable||(a="with(obj||{}){\n"+a+"}\n");var a="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+a+"return __p;\n",d=new Function(c.variable||"obj","_",a);return b?d(b,v):(b=function(a){return d.call(this,a,v)},b.source="function("+(c.variable||"obj")+"){\n"+a+"}",b)},v.chain=function(a){return v(a).chain()};var G=function(a){this._wrapped=a};v.prototype=G.prototype;var H=function(a,b){return b?v(a).chain():a},I=function(a,b){G.prototype[a]=function(){var a=g.call(arguments);return h.call(a,this._wrapped),H(b.apply(v,a),this._chain)}};v.mixin(v),w("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=e[a];G.prototype[a]=function(){var c=this._wrapped;b.apply(c,arguments);var d=c.length;return(a=="shift"||a=="splice")&&d===0&&delete c[0],H(c,this._chain)}}),w(["concat","join","slice"],function(a){var b=e[a];G.prototype[a]=function(){return H(b.apply(this._wrapped,arguments),this._chain)}}),G.prototype.chain=function(){return this._chain=!0,this},G.prototype.value=function(){return this._wrapped}})).call(this);var DemandbaseClient,_,__slice=[].slice;_=this._.noConflict(),DemandbaseClient=function(){function a(a,b){this.key=a,b==null&&(b={}),this.staging=!1,this.versions={ip:2,email:3,domain:1},this.reqwest=b.reqwest||reqwest}return a.prototype.setVersion=function(a,b){return this.versions[a]=b},a.prototype.getVersion=function(a){return this.versions[a]},a.prototype.setStaging=function(a){return this.staging=a},a.prototype.ip=function(){var a,b;return a=1<=arguments.length?__slice.call(arguments,0):[],a=this._extract_args(a),b=a.opts,a[0]!=null&&(b.query=a[0]),this._invoke_api("ip",a.opts,"organization",a.callback)},a.prototype.email=function(){var a,b;return a=1<=arguments.length?__slice.call(arguments,0):[],a=this._extract_args(a),b=a.opts,b.query=a[0],this._invoke_api("email",b,"person",a.callback)},a.prototype.domain=function(){var a,b;return a=1<=arguments.length?__slice.call(arguments,0):[],a=this._extract_args(a),b=a.opts,b.query=a[0],this._invoke_api("domain",b,"domain",a.callback)},a.prototype._invoke_api=function(a,b,c,d){var e;return e=this.getVersion(a),_.extend(b,{key:this.key,page:document.location.href,referrer:document.referrer,page_title:document.title,ns:c}),this.reqwest({url:this._api_url(a,e),type:"jsonp",data:b,success:function(a){if(d!=null)return d(a[c])}})},a.prototype._extract_args=function(a){var b;return b={},_.isFunction(a[a.length-1])&&(b.callback=a.pop()),typeof a[a.length-1]=="object"?b.opts=a.pop():b.opts={},_.extend(b,a)},a.prototype._api_url=function(a,b,c){var d;return c==null&&(c=!0),d=c?"callback=?":"",""+this._protocol()+":
(function(){var img=new Image();img.src="http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1011842940/?random=352628469&cv=7&fst=1381505850121&num=1&fmt=3&adtest=on&value=0&label=rYoHCJSw7wEQ_P694gM&bg=ffffff&hl=en&guid=ON&u_h=768&u_w=1366&u_ah=744&u_aw=1301&u_cd=24&u_his=1&u_tz=-240&u_java=true&u_nplug=7&u_nmime=44&ref=http%3A//www.gotomeeting.com/online/&url=http%3A//2870544.fls.doubleclick.net/activityi%3Bsrc%3D2870544%3Btype%3Dlandi745%3Bcat%3Dg2m_h249%3Bord%3D9491485077887.773%3F&frm=2&eid=317150505&ctc_id=CAIVAgAAAB0CAAAA&ct_cookie_present=false&convclickts=0";})();
var google_conversion_id = 1011842940;
var google_conversion_label = "6Eu9COy1xgQQ_P694gM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
(function(){var f=this;var h=parseFloat("0.06"),k=isNaN(h)||1<h||0>h?0:h;var l=function(a,b){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&b.call(null,a[d],d,a)};var m,n,p,q,r=function(){return f.navigator?f.navigator.userAgent:null};q=p=n=m=!1;var s;if(s=r()){var t=f.navigator;m=0==s.lastIndexOf("Opera",0);n=!m&&(-1!=s.indexOf("MSIE")||-1!=s.indexOf("Trident"));p=!m&&-1!=s.indexOf("WebKit");q=!m&&!p&&!n&&"Gecko"==t.product}var u=n,v=q,w=p;var x;if(m&&f.opera){var y=f.opera.version;"function"==typeof y&&y()}else v?x=/rv\:([^\);]+)(\)|;)/:u?x=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:w&&(x=/WebKit\/(\S+)/),x&&x.exec(r());var z=function(a){this.b=[];this.a={};for(var b=0,d=arguments.length;b<d;++b)this.a[arguments[b]]=""},B=function(){var a=A,b="317150500 317150501 317150502 317150503 317150504 317150505".split(" "),d;if(d=a.a.hasOwnProperty(1)&&""==a.a[1])d=!(1E-4>Math.random())&&Math.random()<k;d&&(b=b[Math.floor(Math.random()*b.length)],""!=b&&a.a.hasOwnProperty(1)&&(a.a[1]=b))};z.prototype.c=function(a){return this.a.hasOwnProperty(a)?this.a[a]:""};z.prototype.geil=z.prototype.c;
var C=function(){var a=A,b=[];l(a.a,function(a){""!=a&&b.push(a)});return 0<a.b.length&&0<b.length?a.b.join(",")+","+b.join(","):a.b.join(",")+b.join(",")};var A,D="google_conversion_id google_conversion_format google_conversion_type google_conversion_order_id google_conversion_language google_conversion_value google_conversion_domain google_conversion_label google_conversion_color google_disable_viewthrough google_remarketing_only google_remarketing_for_search google_conversion_items google_custom_params google_conversion_date google_conversion_time google_conversion_js_version onload_callback opt_image_generator google_is_call google_conversion_page_url".split(" ");
function E(a){return null!=a?escape(a.toString()):""}function F(a,b){var d=E(b);if(""!=d){var c=E(a);if(""!=c)return"&".concat(c,"=",d)}return""}function H(a){var b=typeof a;return null==a||"object"==b||"function"==b?null:String(a).replace(/,/g,"\\,").replace(/;/g,"\\;").replace(/=/g,"\\=")}
function I(a){var b;if((a=a.google_custom_params)&&"object"==typeof a&&"function"!=typeof a.join){var d=[];for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];if(c&&"function"==typeof c.join){for(var e=[],g=0;g<c.length;++g){var G=H(c[g]);null!=G&&e.push(G)}c=0==e.length?null:e.join(",")}else c=H(c);(e=H(b))&&null!=c&&d.push(e+"="+c)}b=d.join(";")}else b="";return""==b?"":"&".concat("data=",encodeURIComponent(b))}
function J(a){return"number"!=typeof a&&"string"!=typeof a?"":E(a.toString())}function K(a){if(!a)return"";a=a.google_conversion_items;if(!a)return"";for(var b=[],d=0,c=a.length;d<c;d++){var e=a[d],g=[];e&&(g.push(J(e.value)),g.push(J(e.quantity)),g.push(J(e.item_id)),g.push(J(e.adwords_grouping)),g.push(J(e.sku)),b.push("("+g.join("*")+")"))}return 0<b.length?"&item="+b.join(""):""}
function L(a,b,d){var c=[];if(a){var e=a.screen;e&&(c.push(F("u_h",e.height)),c.push(F("u_w",e.width)),c.push(F("u_ah",e.availHeight)),c.push(F("u_aw",e.availWidth)),c.push(F("u_cd",e.colorDepth)));a.history&&c.push(F("u_his",a.history.length))}d&&"function"==typeof d.getTimezoneOffset&&c.push(F("u_tz",-d.getTimezoneOffset()));b&&("function"==typeof b.javaEnabled&&c.push(F("u_java",b.javaEnabled())),b.plugins&&c.push(F("u_nplug",b.plugins.length)),b.mimeTypes&&c.push(F("u_nmime",b.mimeTypes.length)));
return c.join("")}function M(a,b,d){var c="";if(b){var c=c+F("ref",null!=b.referrer?b.referrer.toString().substring(0,256):""),e;if(a.top==a)e=0;else if(b=a.location.ancestorOrigins)e=b[b.length-1]==a.location.origin?1:2;else{b=a.top;try{e=!!b.location.href||""===b.location.href}catch(g){e=!1}e=e?1:2}b="";b=d?d:1==e?a.top.location.href:a.location.href;c+=F("url",null!=b?b.toString().substring(0,256):"");c+=F("frm",e)}return c}
function N(a){return a&&a.location&&a.location.protocol&&"https:"==a.location.protocol.toString().toLowerCase()?"https:":"http:"}function O(a){return a.google_remarketing_only?"googleads.g.doubleclick.net":a.google_conversion_domain||"www.googleadservices.com"}
function P(a,b,d,c){var e="/?";"landing"==c.google_conversion_type&&(e="/extclk?");var e=N(a)+"//"+O(c)+"/pagead/"+[c.google_remarketing_only?"viewthroughconversion/":"conversion/",E(c.google_conversion_id),e,"random=",E(c.google_conversion_time)].join(""),g;r:{g=c.google_conversion_language;if(null!=g){g=g.toString();if(2==g.length){g=F("hl",g);break r}if(5==g.length){g=F("hl",g.substring(0,2))+F("gl",g.substring(3,5));break r}}g=""}return e+=[F("cv",c.google_conversion_js_version),F("fst",c.google_conversion_first_time),
F("num",c.google_conversion_snippets),F("fmt",c.google_conversion_format),F("value",c.google_conversion_value),F("label",c.google_conversion_label),F("oid",c.google_conversion_order_id),F("bg",c.google_conversion_color),g,F("guid","ON"),F("disvt",c.google_disable_viewthrough),F("is_call",c.google_is_call),K(c),L(a,b,c.google_conversion_date),M(a,d,c.google_conversion_page_url),I(c),c.google_remarketing_for_search&&!c.google_conversion_domain?"&srr=n":"",F("eid",C())].join("")}
function Q(){var a=R,b=S,d=N(a)+"//www.google.com/ads/user-lists/"+[E(b.google_conversion_id),"/?random=",Math.floor(1E9*Math.random())].join("");return d+=[F("label",b.google_conversion_label),F("fmt","3"),M(a,document,b.google_conversion_